GitHub 博客园 Nanakon

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.

posted on 2017-12-06 16:56  jzm17173  阅读(152)  评论(0编辑  收藏  举报

导航

轻音