每日一句 ( 202525 )  

Life doesn't get easier or more forgiving; we get stronger and more resilient.

生活從未變得更加輕松或?qū)捜荩俏覀冊(cè)谝稽c(diǎn)一點(diǎn)變強(qiáng)、變堅(jiān)韌。———— Steve Maraboli

form.submit()提交時(shí)報(bào)錯(cuò)object is not a function

form.submit()提交時(shí)報(bào)錯(cuò)object is not a function 在寫表單提交時(shí)遇到一個(gè)很扯淡的問題,分享一下。 比如有個(gè)表單,其中某元素的id為submit,像下面這樣寫: 即,如果在表單某元素中,設(shè)置了一個(gè)id名為submit的元素, 然后在使用form.submit()進(jìn)行提交表單時(shí), 表單無動(dòng)作,瀏覽器控制臺(tái)中會(huì)提示一個(gè)js錯(cuò)誤: Uncaught TypeError: object is not a function 如果使用其它的id就正常了。 分...