<button bindtap="click">点击上传地图</button>
//点击事件
click:function(e)
{
var is = this;
wx.chooseLocation({
success:function(e)
{
var tmp = (e.name);
is.setData({
tmp:tmp
})
}
})
}
<button bindtap="click">点击上传地图</button>
//点击事件
click:function(e)
{
var is = this;
wx.chooseLocation({
success:function(e)
{
var tmp = (e.name);
is.setData({
tmp:tmp
})
}
})
}