js报错:TypeError: document.GetElementById is not a function
2014-06-18 13:59
1451 查看
今天在页面间串值的时候遇到了这个问题
TypeError: document.GetElementById is not a function。
后来发下在VS2010中开发的时候,点号后面的提示有两个,但是大小写是不同的,如下:
出错原因是因为选错了,应该用下面的那个!小写字母开头的!
修正后,不再报错!opener.document.getElementById("hidObjectId").value;
注意:点号后面应该取value值。
TypeError: document.GetElementById is not a function。
后来发下在VS2010中开发的时候,点号后面的提示有两个,但是大小写是不同的,如下:
出错原因是因为选错了,应该用下面的那个!小写字母开头的!
修正后,不再报错!opener.document.getElementById("hidObjectId").value;
注意:点号后面应该取value值。
相关文章推荐
- js报错:TypeError: document.GetElementById is not a function
- js错误:Uncaught TypeError: accept is not a function at HTMLInputElement.onclick
- document.getElementById("searchForm").submit is not a function
- JS异常处理:Uncaught TypeError: xxx is not a function at HTMLAnchorElement.onclick
- document.getElementById().submit is not a function
- document.getElementById().submit is not a function
- JS监听事件错误:Uncaught TypeError: xx(函数名)is not a function at HTMLInputElement.onclick
- 错误:document.getElementById("userForm").submit();Object is not a function
- TypeError: document.formname.submit is not a function
- Sea.js出现Uncaught TypeError: object is not a function的解决方法
- js 函数报错“Uncaught: TypeError xxx is not a function”
- Uncaught TypeError: XX is not a function at HTMLInputElement.onclick
- 海康web视频插件错误:TypeError: c.HWP_GetLocalConfig is not a function
- TypeError: record.get is not a function
- Uncaught TypeError: window.jsObj.closeWebView is not a function
- [dataTables.js error] Uncaught TypeError: myTable.row is not a function
- node.js开发错误——TypeError: req.flash is not a function
- jquery-ui.min.js:5 Uncaught TypeError: b.nodeName.toLowerCase is not a function
- ajaxfileupload.js结合低版本jquery报异常:TypeError: jQuery.handleError is not a function
- 【JQuery】sortable.js Uncaught TypeError $(...).sortable is not a function