uniapp formdate請求

何云泽發表於2024-10-28
formData.append("a", "1");
formData.append("x", "2");
為 a=1&x=2
uni.request({
url: ``,
method: "POST",
header: {
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
},
data: "location=xxx,xxx",
success: (res) => {
}
},
});

相關文章