`
fengbo515
  • 浏览: 41342 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

submit is not a function

 
阅读更多

做了三年开发 第一次碰到这个异常 submit is not a function

 

唉 原来 js对submit关键字敏感,页面元素切忌不要 name="submit"

 

 

分享到:
评论

相关推荐

    解决jquery submit()提交表单提示:f[s] is not a function

    有时会遇到这样一个问题:当你尝试使用`submit()`函数来提交表单时,浏览器会抛出一个错误:“f[s] is not a function”或“document.getElementByIdx_x(...).submit is not a function”。这个问题通常出现在表单...

    chrome不支持form.submit的解决方案

    然而,有时开发者会遇到一些意想不到的问题,例如在某些情况下,Chrome浏览器可能无法正常处理`form.submit()`方法。这个问题在某些项目中可能会导致提交表单的功能失效,影响用户体验。 `form.submit()`是...

    Jquery表单验证(采用poshytip提示)

    $('#myForm').submit(function(e) { e.preventDefault(); var email = $('input[name="email"]').val(); if (!/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/.test(email)) { $('input[name="email"]').tooltip('show...

    解决LayUI表单获取不到data的问题

    前几天用LayUI表单进行AJAX提交的... form.on('submit(form_emp2)', function(data){ var temp=$('#updateform').serialize(); // layer.msg(JSON.stringify($('#form1').serialize())); // alert(JSON.strin

    通过cookie记住密码-HTML

    <button type="submit">登录 ``` 在这个例子中,用户可以勾选"记住我"的复选框,表示他们希望在下次访问时自动登录。 JavaScript(JS)则负责处理用户交互,例如检测是否勾选了"记住我",并在用户成功登录后创建...

    hash table spell checking

    The list of possible corrections for a misspelled word is generated using a simple algorithm. Any variation of a misspelled word that is itself a word (i.e. it is found in the word list file) is a ...

    数据结构作业Hash表

    The list of possible corrections for a misspelled word is generated using a simple algorithm. Any variation of a misspelled word that is itself a word (i.e. it is found in the word list file) is a ...

    微软内部资料-SQL性能优化3

    Intent Lock is the term used to mean placing a marker in a higher-level lock queue. The type of intent lock can also be called the multigranular lock mode. An intent lock indicates that SQL Server ...

    解决VUE框架 导致绑定事件的阻止冒泡失效问题

    <form v-on:submit.prevent="onSubmit"> <!-- 阻止表单提交 --> <button v-on:click.self="handleClick"> <!-- 只处理点击按钮的事件 --> 点击 <div v-on:click.capture="parentHandler"> <!-- 先执行...

    [Head.First.JavaScript].Michael.Morrison...

    NaN is NOT a number 62 You can add more than numbers 64 parseInt() and parseFloat() convert text to a number 65 Why are extra donuts being ordered? 66 Duncan discovers donut espionage 70 Use ...

    iOS-2048-master

    ...except looping it is a bit ugly, so I made a `forEach` helper function. * The `M2Cell` class is the "slot"s. They are not the tiles themselves. The benefit of having this class is that the cells ...

    java上传图片实时显示,兼容ie11

    <input type="submit" value="上传" /> ``` 在后端,Java使用Servlet来处理文件上传。`Commons-FileUpload`库是处理多部分请求的标准库。下面是一个简单的Servlet示例: ```java import org.apache.commons....

    WinCE下的触控屏驱动程序源代码

    If it is not found, GWES assumes KBDI_KEYBOARD_PRESENT | KBDI_KEYBOARD_ENTER_ESC | KBDI_KEYBOARD_ALPHA_NUM. This registry access only occurs once, when the keyboard driver is loaded. This value is ...

    Proxy Pattern Informatization Research Based On SaaS

    SaaS website service is a show window of service vendor and a communication channel of users, through which users submit their informatization demands. After satisfying the demand of users, the ...

    VB编程资源大全(英文源码 其它)

    MessageBoxDll.zip This is a custom message box creator.It provides the following functionalities that are not provided by the MsgBox function in VB.<END><br>68,DragDrop.zip This is a code that ...

    jna-4.2.2 官方原版下载

    Features Automatic mapping from Java to native functions, with simple mappings for all ...NOTE: Oracle is not sponsoring this project, even though the package name (com.sun.jna) might imply otherwise.

    毕业论文springboot314基于java无人超市管理系统论文.doc

    agement module to select the payment type and goods and then submit. They can also view purchase details and announcement information. The design of the unmanned supermarket management system is ...

    Vagaa哇嘎画时代--体验群体智慧的力量!

    If you do not want to serve as a SuperNode go to Tools -> Options -> Advanced and check 'Do not function as a SuperNode'. When you are a SuperNode your CPU and Internet connection is being used, but ...

    javascript将异步校验表单改写为同步表单.docx

    var ERROR_WORKER_ID_IS_NOT_CORRECT = "请输入有效的员工工号"; // 显示错误信息 function showWorkerIdError(errorMessage) { $workerIdError.html(errorMessage); $workerIdError.show(); } // 隐蔽错误信息 ...

Global site tag (gtag.js) - Google Analytics