微信小程序判断手机有没有定位的方法

微信小程序判断手机有没有定位的方法

 

var that = this;
wx.getSystemInfo({
success(res) {
var isopendingwei = res.locationEnabled;
if(isopendingwei==false){
that.tc('清先开启手机GPS定位,然后重新刷新');
}




}
})

 

posted @ 2020-02-19 17:42  newmiracle宇宙  阅读(1837)  评论(0编辑  收藏  举报