程序员雯婷Lv1 2026-01-24 23:19:10 最近在用Fetch API传文件老是报错,求大佬看看这段代码咋回事... fetch('/upload', { method: 'POST', body: formData }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err)) #有人遇到过吗# 登录/注册 加载更多