JQUERY

 

1.让动态生成的元素绑定事件.

例:让动态生成的.abc绑定alert()

$(selector).on(event,childSelector,data,function,map)
$('body').on('click','.abc',function(){
              alert(1)
 })

 

posted @ 2018-06-13 19:05  泠风lj  阅读(120)  评论(0编辑  收藏  举报