微信小程序判断手机有没有定位的方法 var that = this; wx.getSystemInfo({ success(res) { var isopendingwei = res.locationEnabled; if(isopendingwei==false){ that.tc('清先开启手机GPS定位,然后重新刷新'); } } }) 来源:https://www.cnblogs.com/newmiracle/p/12332276.html 标签 小程序 移动互联网