作者ticore ({id:"Ticore"};//)
看板Flash
标题Re: [问题] 用js移除flash 记忆体没回来
时间Mon Oct 1 17:10:45 2012
这大概就是原因
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
1F:推 etrexetrex:谢谢! 10/01 19:34