【发布时间】:2018-11-16 20:39:09
【问题描述】:
基本上逐字遵循code example,但尝试使用fetch发出POST请求
fetch('YOUR URL HERE', { method: 'POST', 'body': content })
.then(function (res) {
console.log(res.text());
return res.text();
})
.then(function (plain) {
var output = { okay: true, raw: plain };
callback(null, output);
})
.catch(callback);
导致愤怒的红色框:
我们在发送您的测试时遇到了问题。请再试一次。错误: 错误:body 已用于:https://YOURURLHERE
不知道是什么意思?
【问题讨论】: