好久没写了,记录下。。。

问题重现:使用jquery,做表单提交的时候定义了一个属性nodeName,使用$.submit()

Uncaught TypeError: b.nodeName.toLowerCase is not a functionUncaught TypeError: b.nodeName.toLowerCase is not a function

就是这样的写法,报了下面的错误:

Uncaught TypeError: b.nodeName.toLowerCase is not a function

解决方法:修改nodeName名称。

原因:nodeName在jquery中已经有使用了,关键词冲突了,可以查看nodeValue、nodeType等。

可以参考:http://blog.csdn.net/hdfyq/article/details/52805836


相关文章:

猜你喜欢
  • 2019-09-05
  • 2021-08-17
  • 2021-11-08
  • 2018-11-13
  • 2018-12-25
  • 2021-11-18
  • 2021-11-15
  • 2020-02-19
相关资源
相似解决方案