Forcing a DOM refresh in Internet explorer after javascript dom manipulation

前端 未结 6 1072
感情败类
感情败类 2020-11-27 18:07

Here is the situation. I have some javascript that looks like this:

function onSubmit() {
    doSomeStuff();
    someSpan.style.display=\"block\";
    otherS         


        
6条回答
  •  清歌不尽
    2020-11-27 18:25

    You can also wrap you longterm function in a setTimeout(function(){longTerm();},1);

提交回复
热议问题