// var j, len;
// for (j = 0, len = _this.videoList.length; j < len; j++) {
// if (_this.videoList[j].id == video.id) {
// console.log("===赵明====" + _this.videoList[j].id);
// _this.videoList[j].top = !video.top;
// }
// }
for (var videoObj of _this.videoList) {
if (videoObj.id == video.id) {
console.log("===赵明====" + videoObj.id);
videoObj.top = !video.top;
}
}
js 遍历数组
猜你喜欢
转载自blog.csdn.net/qq_25430563/article/details/88372847
今日推荐
周排行