Re: [問題] 用js移除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
推
10/01 19:34, , 1F
10/01 19:34, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Flash 近期熱門文章
PTT數位生活區 即時熱門文章