微信小程序如何获得手机的ip地址
wx.request({
url: 'http://ip-api.com/json',
success:function(e){
console.log(e.data);
that.setData({
motto:e.data
})
}
})
wx.request({
url: 'http://ip-api.com/json',
success:function(e){
console.log(e.data);
that.setData({
motto:e.data
})
}
})