wx.stopDeviceMotionListening调用老是失败!!!!代码如下onHide(){
console.log('页面前进')
globalData.share = false
wx.stopDeviceMotionListening({
success:(res)=>{
console.log(res)
},
fail:(res)=>{
console.log(res)
},
})
},
onUnload(){
wx.stopDeviceMotionListening({
success:(res)=>{
console.log(res)
},
fail:(res)=>{
console.log(res)
},
})
},
微信小程序开发问题解答
本文网址:http://www.91bianli.com/weixinxiaochengxu/15580.html