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

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

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




}
})

猜你喜欢

转载自www.cnblogs.com/newmiracle/p/12332276.html
今日推荐