今天遇到个问题,用js提交表单报错。
错误信息:
chrome报的错误信息:Uncaught TypeError: Property 'submit' of object #<HTMLFormElement> is not a function
firefox报的错误信息:TypeError: e[h] is not a function
错误原因:在表单中有个button的name叫"submit"
解决办法:直接砍掉button的name属性。
转载于:https://my.oschina.net/u/246481/blog/304382