微信小程序开发(九)获取手机连接的wifi信息
作者:互联网
// succ.wxml <view>WIFI ssid:{{wifissid}}</view> <view>WIFI bssid:{{wifiBssid}}</view> // succ.js var app = getApp() Page({ data: { wifissid: '', // WIFI ssid wifiBssid: '' // WIFI bssid }, onl oad: function (e) { // 获取参数 var that = this; wx.getConnectedWifi({ success: function(e){ that.setData({ wifissid: e.wifi.SSID, wifiBssid: e.wifi.BSSID }) } }) } })
标签:程序开发,ssid,bssid,微信,WIFI,wifi,wifissid,wifiBssid 来源: https://www.cnblogs.com/aaronthon/p/11673471.html