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.

上一篇:WebGL学习笔记三


下一篇:【翻译】详解HTML5 自定义 Data 属性