分类筛选
async getHomes(item) {
let temp = await http.getHome();
let type = [];
this.content.push(type);
this.show = type;
for (var i = 0; i < temp.length; i++) {
if (item === temp[i].gameLabel) {
type.push(temp[i]);
console.log(item);
// console.log(temp[i].gameLabel);
console.log(type);
} else if (item === this.lables[0]) {
// console.log(this.lables[0]);
this.show.push(temp[i]);
}
}
},
本文来自博客园,作者:zjxgdq,转载请注明原文链接:https://www.cnblogs.com/zjxzhj/p/14493496.html