const url = "http://127.0.0.1:3001/createAccount";
fetch(url, {
method: "POST",
mode: "cors",
body:"pwd=sdd",
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(response => response.json())
.then(result => {
// 在此处写获取数据之后的处理逻辑
console.log(result);
}).catch(function (e) {
//console.log("fetch fail", JSON.stringify(params));
alert(e);
});
更多精彩内容:各种AI课程、技能课程、黑科技软件、网站小程序源码、副业小项目、PPT模板等精品素材、电商课程、推广引流课程等,尽在 天边资源网 。