类型错误:'[object HTMLInputElement]'不是 jQuery form.submit() 中的函数(评估 'elem[ type ]()') [英] TypeError: '[object HTMLInputElement]' is not a function (evaluating 'elem[ type ]()') in jQuery form.submit()

查看:44
本文介绍了类型错误:'[object HTMLInputElement]'不是 jQuery form.submit() 中的函数(评估 'elem[ type ]()')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从未遇到过这个问题?我在最新版本的 jQuery 中收到此错误.我试过 1.6.2 版本,没有问题.

Has never run into this issue? I'm getting this error in the latest release of jQuery. I tried with version 1.6.2 and there is no issue.

TypeError: '[object HTMLInputElement]' is not a function (evaluating 'elem[ type ]()')

line 3175

有什么需要我们注意的变化吗?

Has anything changed that we should be aware of?

谢谢,杰克

推荐答案

如果您的任何 input 标签的名称是 submit,通常会发生这种情况.例如,

This usually happens if any of your input tag's name is submit. For example,

<form id="frm">
    <input type="submit" name="submit" value="Post" />
</form>

在上面的代码中,document.getElementById("frm").submit代表了input元素.当您将 () 应用于 submit 时,它会显示此错误.

On the above code, document.getElementById("frm").submit represents the input element. When you apply () to submit It shows this error.

这篇关于类型错误:&amp;#39;[object HTMLInputElement]&amp;#39;不是 jQuery form.submit() 中的函数(评估 &amp;#39;elem[ type ]()&amp;#39;)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆