method: "post",
header: {
'content-type': 'application/x-www-form-urlencoded;charset=utf-8', // 默認值
'cookie': wx.getStorageSync('Set-Cookie')
},
scriptCharset: 'utf-8',
寫成這樣準沒錯
method: "post",
header: {
'content-type': 'application/x-www-form-urlencoded;charset=utf-8', // 默認值
'cookie': wx.getStorageSync('Set-Cookie')
},
scriptCharset: 'utf-8',
寫成這樣準沒錯
微信小程序真機調試時出現了,Error: request:fail url not in domain list:api.xxx.com 需要把網址添加到合法域名中,見圖 --- 自用 不解釋