将 div insidehtml 设置为包含表的源
我认为我想做的事情很简单,但显然与 IE 相关的事情从来都不是简单的。
我将其与 Javascript 和 ajax 一起使用 -
document.getElementById("calender").innerText=mypostrequest.responseText
它在 Firefox 和 IE7 中工作正常,但在 IE8 中不行。我怀疑这是因为文本包含表格,因为我已经用其他文本对其进行了测试。我无法更换桌子。有什么办法可以解决这个问题吗?
I thought what I was trying to do is quite simple, but apparently nothing related to IE is ever simple.
I'm using this with Javascript and ajax -
document.getElementById("calender").innerText=mypostrequest.responseText
It works fine in Firefox and IE7, but not IE8. I suspect it's because the text contains a table, since I have tested it with other text. I can't replace the table. Is there any way to get around this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试
Try
切换到 jQuery
现在可以使用了。
Switched to jQuery
It works now.