| | |
| | | //写第3代的代码逻辑,用两个for循环写第3代 |
| | | this.getGenByNum(this.rootThiList, this.rootList[0], 1, 3) |
| | | console.log(this.rootThiList) |
| | | // console.log('-=-------') |
| | | console.log('-=-------') |
| | | this.isShow_2=true |
| | | this.isShow_3=true |
| | | this.isShow_4=false |
| | | }, |
| | | generation_4(){ |
| | | this.getList(4); |
| | | this.getGenByNum(this.rootFouList, this.rootList[0], 1, 3) |
| | | // alert(32) |
| | | this.getGenByNum(this.rootFouList, this.rootList[0], 1, 4) |
| | | console.log(this.rootFouList) |
| | | // console.log('-=23-------') |
| | | this.isShow_2=true |
| | | this.isShow_3=true |
| | | this.isShow_4=true |