wx.startWifi({
success: res => {
console.log("start success")
wx.stopWifi({
success: res => {
console.log(res)
console.log("stop success")
},
fail: err => {
console.log("stop fail")
}
})
},
fail: err => {
console.log("start fail")
}
})
接口调用响应结果 如下,WiFi状态没有任何的变化
start success
index.js:103 {errno: 0, errCode: 0, errMsg: "stopWifi:ok"}
index.js:104 stop succes