Cannot read property 'nodeName' of null
来源:互联网 发布:提醒事项软件 编辑:程序博客网 时间:2024/05/29 18:04
在项目,用到了jQuery的validate插件,将<form id="a"></form>的form写成了 from,这就导致了validate的验证找不到form,在浏览器控制台会报
cannot read property 'nodeName' of null 。
后来百度,看到有些原因提到是标签问题,有人说是页面的某些标签ID值和form标签的ID值重复。
我仔细看了下代码,标签里写了from,导致写好的表单validate失效了,就这样解决了bug。
其他的情况也可能导致报同样的错误,还是根据自己的实际项目分析。
0 0
- Cannot read property 'nodeName' of null
- easyui:Cannot read property 'nodeName' of null问题的解决
- cannot read property 'nodeName' of null 的原因
- js中出现Cannot read property 'nodeName' of null
- Cannot read property 'nodeName' of undefined
- Extjs4---Cannot read property 'addCls' of null
- Extjs4---Cannot read property 'addCls' of null
- extjs Cannot read property 'dom' of null
- Extjs4---Cannot read property 'addCls' of null
- extjs cannot read property 'addcls' of null
- Extjs4---Cannot read property 'addCls' of null
- Cannot read property 'root' of null 解决方法
- datagrid报Cannot read property '' of null
- Cannot read property 'getElementsByTagName' of null
- Cannot read property 'add' of null
- Extjs4---Cannot read property 'addCls' of null
- Cannot read property 'value' of null
- Qt:QML:Cannot read property '*' of null
- java线程
- 在没有搜索功能的网站中寻找指定内容
- STM32之CAN---工作/测试模式浅析
- 程序猿技能表
- cuda sm执行block的数量
- Cannot read property 'nodeName' of null
- CK2
- Android自定义View之微信雷达
- 翻转二叉树
- 关于EL表达式中requestScope和param区别
- 逻辑斯谛回归学习总结
- 03.js中apply方法的使用
- [Java 安全]消息摘要与数字签名
- 类的构造函数,析构函数与赋值函数