坑:小程序使用云函数使用skip、limit获取的数据总是重复 原因:云函数为异步,我把count += 1放到了云函数成功调用的回调中,导致下一次触动获取新一页数据的时候,count数据没有+1,获取重复数据 代码: getDataFun:function(){ let that = this let count = that.data.count wx.cloud.callFunction({ name:'getPageData', data:{ id, count } }