Uncaught TypeError: xxx.submit is not a function解决方案
2017-01-11 00:00
549 查看
问题详情:
后端的程序写的都没有问题。在点击button的时候会出现错误
Uncaught TypeError: targetForm.submit is not a function
at login ((index):11)
at HTMLInputElement.onclick ((index):26)
解决方案:把jsp中的<input>组件的名字改成其他的,但不要是submit。
还遇到过一个问题,就是把onclick=“register();”的时候程序也会出现同样的问题,把register换成其他字母即可。
后端的程序写的都没有问题。在点击button的时候会出现错误
Uncaught TypeError: targetForm.submit is not a function
at login ((index):11)
at HTMLInputElement.onclick ((index):26)
解决方案:把jsp中的<input>组件的名字改成其他的,但不要是submit。
还遇到过一个问题,就是把onclick=“register();”的时候程序也会出现同样的问题,把register换成其他字母即可。
相关文章推荐
- 火狐下正常,谷歌、360下js中提示Uncaught TypeError: XXX is not a function
- JS异常处理:Uncaught TypeError: xxx is not a function at HTMLAnchorElement.onclick
- 关于JavaScript一个错误 Uncaught TypeError: form.submit is not a function
- UnCaught TypeError:date.getFullYear is not a function解决方案
- 浏览器提示Uncaught TypeError: object is not a function XXX onclick
- jQuery 关于 Uncaught TypeError: XXX is not a function
- js 函数报错“Uncaught: TypeError xxx is not a function”
- Uncaught TypeError: XXX is not a function解决
- Uncaught TypeError: XXX.getTime is not a function
- 【库房】Uncaught TypeError: $(...).ajaxSubmit is not a function‘’
- 关于 "Uncaught TypeError: Property 'submit' of object #<HTMLFormElement> is not a function" 的解决方案
- TypeError: $(...).ajaxSubmit is not a function
- Google Chrome: Uncaught TypeError: String is not a function.
- extjs之TypeError: d.read is not a function解决方案
- Uncaught TypeError: undefined is not a function
- JS报错 Uncaught TypeError: undefined is not a function,解决
- chrome浏览器Uncaught TypeError: object is not a function问题解决
- jQuery Validation插件onfocosout/onkeyup出错的解决方法[Uncaught TypeError: undefined is not a function中文资料不好找]
- TypeError: document.formname.submit is not a function
- TypeError:window.forms.loginForm.submit is not a function