获取网络状态:wx.getNetworkType
btnclick:function(){ wx.getNetworkType({ success:function(res){ console.log(res); }; }); }