getConnectedWifi为什么要启用手机位置信息才能用?
安卓系统,为什么要启用手机位置信息才能用???为什么要重新开启程序signalStrength才能有新的变化?????? getConnectedWifi:function(){ var that = this that.stopWifi(); that.startWifi(); wx.getConnectedWifi({ success: function(res){ console.log(res); that.setData({ message2: res.wifi.SSID}); that.setData({ message3: res.wifi.signalStrength}); }, fail:function(err){ console.log(err); that.setData({ message2: err.errCode}); //'失败''失败' } }) },