Error: theForm.submit is not a function !!

theForm.submit is not a function

调试了半天,才发现范了低级错误。 页面中有一个按钮ID 是 submit 而引发的错误。 引出的问题是页面上的元素命名范围不能是 window 对象的方法名, 否则,方法无效。

原文地址:https://www.cnblogs.com/Jeremy2001/p/6127530.html