Why should I unbind Javascript Events?
Could anyone explain why I should unbind or detach Javascript E开发者_开发百科vents?
- Because you simply no longer want the events to fire
- 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.
精彩评论