異步上傳圖片時Javascript報uncaught typeerror illegal invocation錯誤

通過input file 異步上傳圖片到服務時,出現了uncaught typeerror illegal invocation錯誤 主要是因爲processData不設置爲false,jq對formdata默認處理使http無法發送請求,設置爲false,會繞過jq的處理,這樣就能發送formdata對象了。
相關文章
相關標籤/搜索