ChangeAddress:function()
{
let that = this;
uni.chooseLocation({
success: function (res) {
that.testTitle =res.name;
that.AddressData = res;
},
fail(ee) {
console.log(ee);
}
});
},
这段代码在微信小程序端跑起来没问题,但是总报 : Uncaught (in promise) 的错误。请问我应该怎么处理
2 个回复
智商无下限 (作者)
整明白了,用箭头函数或者 that=this
智商无下限 (作者)
说错了,没整明白!还那样