小程序怎么判断手机位置服务是否打开?
发布于 7 年前 作者 wren 10932 次浏览 来自 官方Issues

小程序怎么判断手机位置服务是否打开?wx.getLocation手机位置没打开也可以进行定位

2 回复

{ locationEnabled } = wx.getSystemInfoSync() 判断"locationEnabled" 是true or false

回到顶部