我正在使用脚本将数据发送到谷歌云端硬盘。该脚本有两个函数用于检测请求是否已发送。是否存在一种功能替代jquery的beforesend?
用于检测请求是否正在发送?
用于检测请求是否正在发送?
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then((response) => {
alertify.success("Sent succesfully");
})
.catch((err) => {
alertify.error("Failed to send");
});