小程序意外退出,请稍候重试。
loadAnimation: function () {
var that = this;
if (that.data.animationnum < 45) {
that.setData({
animationnum: that.data.animationnum + 1,
});
setTimeout(that.loadAnimation, 42);
} else {
if (that.data.itemlist.length == 0) {
that.setData({
animationnum: 0,
});
setTimeout(that.loadAnimation, 42);//这行注释就不会闪退了 但是这行代码很需要
}
}
},