map.jsmap:function(){wx.getLocation({type:'gcj02',//返回可以用于wx.openLocation的经纬度success(res){constlatitude=res.latitudeconstlongitude=res.longitudewx.openLocation({latitude,longitude,scale:18})}})},map.wxmlbuttonbindtap="map"点击我/button效果图:

TAG标签: 微信小程序wxopenLocation微信小程序可以随便点吗微信小程序开发简单吗

http://www.xiaochengxub.com/read-96958.html