.on(events, selector, function)

用JQ中.on()进行事件委托

 

后来添加的子元素也可以触发父元素事件

posted @ 2021-12-07 22:22  ๑Secret  阅读(56)  评论(0)    收藏  举报