小程序获取当前的ip

// 微信获取ip

that = this;
wx.request({
    url: 'http://ip-api.com/json',
    success:function(e){
        that.setData({
            motto:e.data
        })
    }
});        

 

posted @ 2018-11-21 11:37  澔如菸海  阅读(2867)  评论(0编辑  收藏  举报