2018年6月25日

对jquery新增加的class绑定事件 jquery 对相同class 绑定事件

摘要: 当页面加载时,就会注册所有的事件,后面通过jquery新增的内容(<div class="item"></div>),再对新增的添加事件$(".item").click(function(){});页面是不会执行的, 由于jquery1.9后的版本已经把live()方法删除了,所以最好使用on()方 阅读全文

posted @ 2018-06-25 16:42 星河赵 阅读(1708) 评论(0) 推荐(1)

导航