开发者

Why should I unbind Javascript Events?

Could anyone explain why I should unbind or detach Javascript E开发者_开发百科vents?


  1. Because you simply no longer want the events to fire
  2. Because they take up memory. Note that in old versions of IE, manual unbinding may be needed for memory to be freed, even if the elements are removed from the DOM.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜