Home > Backend Development > PHP Tutorial > discuz ie中js里面的innerHTML不起作用,该如何解决

discuz ie中js里面的innerHTML不起作用,该如何解决

WBOY
Release: 2016-06-13 13:37:39
Original
1322 people have browsed it

discuz ie中js里面的innerHTML不起作用
discuz x2中鲜花鸡蛋功能有一个局部刷新的功能 里面用了innerHTML进行值的嵌入 但是ie中效果显示不出来 在火狐和谷歌中都可以

...... 救急。。。。。

------解决方案--------------------
请使用id操作

document.getElementById("id").innerHTML = "内容";
------解决方案--------------------
ie不兼容标准,支持一个id对应多个对象。
可以用getElementsByName啊
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