jlchassis: function() {
var _this = this;
wx.request({
url: 'https://localhost:44360/home/index',
header: {
'Content-Type': 'application/json'
},
success: function(e1) {
console.log(e1.data)
_this.setData({
start_address: e1.data
})
}
})
}
用console.log(start_address)显示未定义
this.data.start_address
e1.data是有数据的我用console.log(e1.data)可以看到数据