js 数组判断两个数组的值部分相等判断

for (let i = 0; i <= this.etc.length - 1; i++) {
for (let j = 0; j <= this.dayArr.length - 1; j++) {

if (this.etc[i].beginTime == this.dayArr[j].date) {
this.dayArr[j].price = this.etc[i].activePrice
}
}

 


}

posted @ 2019-10-15 17:46  木头小屋  阅读(2748)  评论(0编辑  收藏  举报