Re: [問題] 用js移除flash 記憶體沒回來

看板Flash作者 ({id:"Ticore"};//)時間12年前 (2012/10/01 17:10), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
這大概就是原因 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

10/01 19:34, , 1F
謝謝!
10/01 19:34, 1F
文章代碼(AID): #1GQLuNZc (Flash)
討論串 (同標題文章)
文章代碼(AID): #1GQLuNZc (Flash)