close
參考網頁:http://blog.othree.net/log/2007/03/02/tips-of-document-write/

一直以為 document.write 會直接重寫整個網頁,原來其實是:

1. 頁面載入完成前使用 document.write 為新增 html
2. 頁面載入完成後使用 document.write 為覆寫整個 html (所以會變成一片空白)
arrow
arrow
    全站熱搜

    wbkuo 發表在 痞客邦 留言(0) 人氣()