通过input file 异步上传图片到服务时,出现了uncaught typeerror illegal invocation错误

主要是因为processData不设置为false,jq对formdata默认处理使http无法发送请求,设置为false,会绕过jq的处理,这样就能发送formdata对象了。

异步上传图片时Javascript报uncaught typeerror illegal invocation错误

异步上传图片时Javascript报uncaught typeerror illegal invocation错误

相关文章: