标签:path his var ati col color div get use
wxml
<button open-type="getUserInfo" bindgetuserinfo="fetchInfo">获取位置</button> <view bindtap="getLocalPath">{{localPath}}</view>
js
data: {
"localPath":"请选择位置"
},
getLocalPath:function(){
var that = this;
//调用微信位置接口
wx.chooseLocation({
success:function(res){
that.setData({localPath:res.address});
},
})
},
标签:path his var ati col color div get use
原文地址:https://www.cnblogs.com/nanjo4373977/p/12868320.html