获取网络类型。
OBJECT参数说明:
wx.getNetworkType({ success: function(res) { var networkType = res.networkType // 返回网络类型2g,3g,4g,wifi } } )