for (let i = 0; i < this.temp1.length; i++) { let found = false; for (let j = 0; j < combination_name_list.length; j++) { if (combination_name_list[j] == this.temp1[i].name) { found = true; } if (j == combination_name_list.length - 1 && found == false) { this.combination.push({ "name": this.temp1[i].name, "rows1": this.temp1[i].rows, "rows2": [], "type": this.temp1[i].type }); } } }
想知道这两层循环中i,和j的变化,里外层循环是怎么走的,以及这段代码的意思,只能看懂一半!
一只甜甜圈
相关分类