FF keeps spinning after [removed]()

后端 未结 1 478
感情败类
感情败类 2020-12-17 23:39

  
    

        
相关标签:
1条回答
  • 2020-12-18 00:11

    You need to call document.close(). document.write calls document.open if the document hasn't been opened. As long as the document isn't closed again with document.close the browser will indicate that the page is subject to change.

    function fn() {
        // implicit call to `document.open();` before document.write
        document.write("Hello there!!!");
        document.close();
    }
    
    0 讨论(0)
提交回复
热议问题