基本上遵循代码示例逐字,但尝试使用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);
Run Code Online (Sandbox Code Playgroud)
结果在愤怒的红色框中:
我们无法通过您的测试.请再试一次.错误:错误:正文已用于:https:// YOURURLHERE
不确定这意味着什么?
| 归档时间: |
|
| 查看次数: |
888 次 |
| 最近记录: |