Quite annoying...IE sucks...
I encountered this problem when I want to change a table's content using el.innerHtml = '<tr>...</tr>' in which el is a table element, IE throws "unknown runtime exception".
Finally I succeeded by adding a div as a wrapper of the table and using divEl.innerHtml = '<table><tr>...</tr></table>'.
See the link you can find some explanations to this. Seems IE is more strict than FF.
遇到使用IE浏览器时,在尝试使用el.innerHTML更改表格内容时出现未知运行时错误的问题。通过将表格内容包裹在一个div元素内,使用divEl.innerHTML进行替换,最终成功解决了此问题。发现IE浏览器在这方面比Firefox更严格。
4436

被折叠的 条评论
为什么被折叠?



