wx.request({
url: "路径",
method: ‘post‘,
header: {
"Content-Type": "application/x-www-form-urlencoded"
},
data: {
},
success: function (res) {
console.log(res)
}
})
点击详情,本地设置,选择不校验合法域名 把这个勾选。

上一篇
《小程序》模板的使用
下一篇
微信小程序 MD5引用