看板 Flash 關於我們 聯絡資訊
這大概就是原因 http://stackoverflow.com/questions/9176225/ie9-memory-leak-for-dynamic-dom-objects-with-id-attribute IE does not remove the resources used by ID:d elements completely after the element is removed, but it will apparently re-use those resources if the same ID is added to the page again. ※ 引述《etrexetrex (moonet)》之銘言: : === 目標 === : 移除畫面上的 flash 時能夠清除 flash 所占用的記憶體 : === 實驗 === : 假設操作 HTML 字串等於操作記憶體 : 新增 Object Tag 增加記憶體使用量 : 移除 Object Tag 減少記憶體使用量 : 畫面上放兩個按鈕 : addFlash : removeFlash : 按一下 addFlash 新增一個 Object Tag : 按一下 removeFlash 移除所有 Object Tag : === 實作 === : === HTML的部分 === : <body> : <a href="#" id="addFlash">add flash</a> : <a href="#" id="removeFlash">remove flash</a> : <div id="flashContainer"></div> : </body> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.147.239.66
etrexetrex:謝謝! 10/01 19:34