jquery移除元素时会自动解绑事件

.html()

When .html() is used to set an element's content, any content that was in that element is completely replaced by the new content. Additionally, jQuery removes other constructs such as data and event handlers from child elements before replacing those elements with the new content.

原文地址:https://www.cnblogs.com/jzm17173/p/7993644.html