Uncaught TypeError: Cannot read property 'value' of null
2014-06-10 09:07
1121 查看
使用document.getElementById("dd"),或者$("dd"); 可能会遇到如上错误,可能是因为使用了不存在的 id,比如:$("id1"),id1 在 HTML 中根本不存在,则会报如标题中的错误。
要注意,是不是把class当成了id
要注意,是不是把class当成了id
相关文章推荐
- Uncaught TypeError: Cannot read property 'value' of null
- JavaScript:Uncaught TypeError Cannot read property 'id' of null。
- js提示Uncaught TypeError: Cannot read property 'options' of null
- Uncaught TypeError: Cannot read property 'length' of null
- canvas出现Uncaught TypeError: Cannot read property 'getContext' of null 错误
- 关于js Uncaught TypeError: Cannot read property 'style' of null 问题
- Uncaught TypeError: Cannot read property 'querySelector' of null
- Uncaught TypeError: Cannot read property 'offsetTop' of null
- Uncaught TypeError: Cannot read property 'hasOwnProperty' of null
- 关于"Uncaught TypeError: Cannot read property 'time' of null"的处理
- Uncaught TypeError: Cannot read property 'click' of null问题的解决
- discuz 出现了Uncaught TypeError: Cannot read property 'appendChild' of null
- 安卓Webview 加载网页 Uncaught TypeError: Cannot read property 'getItem' of null",
- Uncaught TypeError: Cannot read property of 'name' null
- Uncaught TypeError: Cannot read property 'prototype' of null using Openerp 7.0
- Uncaught TypeError: Cannot read property 'getItem' of null
- 在开发Ext 项目中如果遇到 Uncaught TypeError: Cannot read property 'insertAdjacentHTML' of null
- 泪的教训!"Uncaught TypeError: Cannot set property 'value' of null"
- js事件处理程序 Uncaught TypeError: Cannot read property 'addEventListener' of null
- Uncaught TypeError: Cannot read property 'width' of null