给动态ajax添加的元素添加click事件

$(document).on('click','div',function(){alert(1)});

.live()方法也是可以的

posted @ 2017-12-05 08:22  Basu  阅读(1022)  评论(0编辑  收藏  举报