wx.getBackgroundFetchData()

发布于 7 年前作者 yuanwei11584 次浏览最后编辑 7 年前来自 issues

wx.getBackgroundFetchData({

fetchType: ‘periodic’,

success(res) {

console.log(res.fetchedData); // 缓存数据

console.log(res.timeStamp) // 客户端拿到缓存数据的时间戳

}

})

始终返回缓存数据hello world 1

1 回复
ztan
ztan1 楼6 年前

你提供的数据接口是啥,贴出来看看