innerHTML doesn't work in IE11 and IE8

后端 未结 3 992
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 03:39

I use these codes for refreshing a part of my page :

var container = document.getElementById(\"mainForm:table_1\");
var content = container.innerHTML;
contai         


        
3条回答
  •  Happy的楠姐
    2021-01-14 04:24

    It seems IE 11 does not refresh an element if the new content set to its innerHTML is the same than its actual content.
    My problem was that in the 'some_url' string was the same even if its content was changed.
    To solve this I added milliseconds at the end of some_url so it becomes :

提交回复
热议问题