newmiracle

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

 

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




}
})

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-25
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2021-12-02
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案