...
...
wx.request({ url: 'http://ip-api.com/json', success:function(e){ console.log(e.data); that.setData({ motto:e.data }) } }) ...
wxjs:代码 将用户信息发送后台 控制器代码: 小程序点击获取手机号按钮 wx.js代码 需要将 button 组件 open-type 的值设置 ...
">手机号码</button> 2,js cellphone.js Page({ /* ...