js奇怪的异常

WBOY
Release: 2016-06-13 12:55:41
Original
746 people have browsed it

js奇怪的错误
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



无标题文档







<script><br /> <br /> document.getElementById("t").innerHTML=123;<br /> </script>

为什么最后一行在ie中报错呢.. 谷歌就没问题.
js
------解决方案--------------------
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



无标题文档







<script><br /> <br /> document.getElementById("t").innerHTML=123;<br /> </script>


在IE中,表格的innerHTML是只读的,不能写
------解决方案--------------------
一般不设置table的innerHTML的    你改成div试试


------解决方案--------------------
不可以对 表格 标签赋值
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template