Home > Web Front-end > JS Tutorial > js failure problem and reasons caused by name='submit' of submit button_javascript skills

js failure problem and reasons caused by name='submit' of submit button_javascript skills

WBOY
Release: 2016-05-16 16:13:07
Original
1042 people have browsed it

The code is as follows:

Copy code The code is as follows:

http://www.w3.org/1999/xhtml"> http-equiv="Content-Type" content="text/html; charset=utf-8">
Insert title here





每页显示
条 共6条记录  第

页 / 共1页 第一页
最后一页  跳转页码至:






name属性删除之后正常运行~~这是什么原因呢,经过一番研究和咨询,一位大神给出了答案

form中元素通过name获取。如果name=submit,那么form.submit得到的应该是 那个input 。所以form.submit()会报 is not a finction 的错误

小伙伴们了解了没,希望本文能给大家一些帮助

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template