按照 “实战讲解”课程:http://****************/27168.html(讲“发布信息”)
以下这段代码我调试时出现问题:
--------------------------------------------------------------------
const data = Object.assign ({}, this.staticData, {
address: this.data.address,
distinct: "yushui_t"
})
wx.request({
url: ‘https://nuan.wekeji.cn/............................’ ,
data: data,
method: "POST",
header: {
'content-type': 'application/x-www-form-urlencoded'
},
success: this.handleSubmitSucc.bind(this)
})
},
handleSubmitSucc(res) {
console.log(res.data)
}
--------------------------------------------------------------------------------------------------------------------------------
调试反馈:
appservice?t=1542163221788:1117
POST
net::ERR_NAME_NOT_RESOLVED
(接口地址无法解析)
用老师讲课时给的地址是:
https://nuanwan.wekeji.cn/…
调试反馈:
https://nuanwan.wekeji.cn 不在以下 request 合法域名列表中,请参考文
https://mp.weixin.qq.com/....................................
appservice?t=1542164505236:1117
(index) | 0 |
0 | “https://nuan.wekeji.cn” |
我的这段代码,ur1 应如何填写?