开发者

Does jQuery automatically remove attached even handlers from objects when I remove them?

开发者 https://www.devze.com 2022-12-09 02:55 出处:网络
Well my interest is whether jQuery does remove attached event handlers from the DOM object and all it\'s descendants (if they got some event handlers at开发者_Python百科tached as well), if I just remo

Well my interest is whether jQuery does remove attached event handlers from the DOM object and all it's descendants (if they got some event handlers at开发者_Python百科tached as well), if I just remove that DOM object with jQuery('.selector').remove()?


jQuery docs: "Note that this function starting with 1.2.2 will also remove all event handlers and internally cached data."

0

精彩评论

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