Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如果用另外一个数组的话怎么读取到用户点击的那个
就是将生成的佣兵8和9,创建到+号上
@挨打的小老弟 可以试试给佣兵一个变量用来表示它具体是哪个佣兵对象,然后循环生成佣兵实例的时候,顺带把佣兵名设置给这个实例变量,然后写事件点击佣兵实例时,根据这个佣兵组的变量值来按名称创建新的佣兵实例应该就行了