totosspace
2018-06-28 10:23:02
let?temp?=?that.data.tempPaging
console.log(temp)
Product.setQuery(query).orderBy('-created_at').limit(5).offset(0).find().then(res?=>?{截取了部分代碼如上,這是正常的情況。let?temp?=?that.data.tempPaging
console.log(temp)
Product.setQuery(query).orderBy('-created_at').limit(5).offset(temp).find().then(res?=>?{如果我將 offset 括號中換成temp,就沒辦法識別這個temp背后所賦值的數(shù)字了。那怎么辦? 這個temp的值必須是動態(tài)的。
1 回答

添加回答
舉報
0/150
提交
取消