在微信小程序中,可以使用 wx.getLocation 方法获取用户当前位置。该方法需要用户授权,且只在使用小程序时有效。 微信小程序获取用户位置的方法 1. 使用 wx.getLocation API wx.getLocation 是微信小程序提供的用……