wx.startWifi({ success (res) { console.log('初始化wifi成功'); console.log(res); wx.connectWifi({ SSID: '',//你的wifi账号 password: '',//你的wifi密码 success (res) { console.log('success') console.log(res) }, fail (res) { console.log('fail') console.log(res) } }) }, fail (res) { console.log('初始化wifi失败') console.log(res) } })