ip的值就是e.data.request的值
wx.request({
url: 'http://ip-api.com/json',
success:function(e){
console.log(e.data);
that.setData({
motto:e.data
})
}
})
此文章属于转载操作,小程序-如何获取手机ip地址 - 简书 原文章在这里
ip的值就是e.data.request的值
wx.request({
url: 'http://ip-api.com/json',
success:function(e){
console.log(e.data);
that.setData({
motto:e.data
})
}
})
此文章属于转载操作,小程序-如何获取手机ip地址 - 简书 原文章在这里