if (r.query.fromcrumb === 'true') { // 從面包屑進(jìn)來的,刪除后面部分
for (let i = 0; i < this.keyList.length; i++) {
if (r.query.keyword.indexOf(this.keyList[i].name) >= 0) { continue;
} else { this.keyList = this.keyList.slice(0, i); break;
}
}
} else {}
求解這段代碼eslint報(bào)錯(cuò)不希望用continue,應(yīng)該怎么修改?
慕蓋茨4494581
2018-08-23 22:07:12