wx.getBackgroundFetchData({
fetchType:"periodic",
success:(res)=>{
console.log(res.timeStamp)
console.log("周期性更新数据的时间:",new Date(res.timeStamp)),
console.log("getBackgroundFetchData success:",res)
},
fail(res){
console.log("getBackgroundFetchData fail:",res)
},
complete(res){
console.log("getBackgroundFetchData complete:",res)
}
})
在IOS手机上,上面new Date(res.timeStamp)) 转换后,变成了1970年,安卓是正常的。客户端是8.0.45,基础库3.3.0