var longitude = 101.234567;
var latitude = 202.123456;
wx.openLocation({
longitude: Number(longitude),//经度或纬度必须是number类型
latitude: Number(latitude),
name: '哈哈哈',
address: '地址???'
}) 微信小程序官方链接地址:
https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.openLocation.html
版权声明:本文为qq_38839887原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。