uni.startWifi({
success: (ret) => {
console.log(ret, 'startWifi'); // {"errSubject":"uni-startWifi","errCode":0,"errMsg":"startWifi:ok"}
uni.getConnectedWifi({
partialInfo: true,
success: (res) => {
console.log(res, 'startWifi');
uni.stopWifi({
success: () => {
console.log('stopWifi');
}
})
},
fail: (err) => {
console.log(err); // { "errSubject": "uni-wifi", "errCode": 12010, "errMsg": "unknown error" }
},
complete: (e) => {
console.log(e); // { "errSubject": "uni-wifi", "errCode": 12010, "errMsg": "unknown error" }
}
})
},
fail: (err) => {
uni.stopWifi({})
console.log(err);
}
})
code_fyf
- 发布:2024-07-05 14:43
- 更新:2024-07-05 14:45
- 阅读:184
1 个回复
code_fyf (作者)
android正常,ios报错