Uncaught TypeError: upload is not a function at HTMLInputElement.onchange
程序员文章站
2022-04-28 11:21:25
...
js 中标签的id名称不能和方法名一样,
<input type="file" id="upload" onchange="upload()">改为
<input type="file" id="uploadpic" onchange="upload()">
推荐阅读
-
关于Uncaught TypeError: validator.resetForm is not a function错误的问题
-
Uncaught TypeError: xx.split is not a function
-
Uncaught TypeError: $(...).uedSelect is not a function
-
报错:Uncaught TypeError: $(…).dialog is not a function,处理方法。
-
Uncaught TypeError: Object.entries is not a function
-
Uncaught TypeError: $.ajax(...).error is not a function
-
Uncaught TypeError: $(...).modal is not a function错误
-
Uncaught TypeError: result.map is not a function
-
Uncaught TypeError: $(...)table is not a function at HTMLTableCellElement
-
Uncaught TypeError: XXX is not a function