你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
赞同来自:
kylin9718
ParadiseKiss
该问题目前已经被锁定, 无法添加新回复
4 个回复
赞同来自:
var data: any[] = [];
listData.sort(function () {
return 0.5 - Math.random();
});
listData.map((item, index) => {
var hotShow: boolean = false;
var newShow: boolean = false;
if (index >= 3 && index < 8) {
hotShow = true;
}
if (index >= 11 && index < 16) {
newShow = true;
}
data.push({
gameName: {
text: item.name
},
gameIcon: {
skin: item.pic
},
hot: {
visible: hotShow
},
new: {
visible: newShow
},
name: JSON.stringify(item)
});
})
// console.log("表的数据:", JSON.stringify(data));
listNode.array = data;
}
赞同来自:
这四个图片都是已经加载好了的, 但是第二张图就显示成纯白色的图了
kylin9718
赞同来自:
ParadiseKiss
赞同来自: