摘要: 动态添加的元素,无法侦听到事件,写法如下:使用函数.on格式为:$(父元素).on('event','selector',function(){//do something})例如sos写为$('body').on('click','.test_a',function(){alter($(this).attr('id'))})参考http://www.cnblogs.com/lionden/archive/2013/03/21/2973410.html 阅读全文
posted @ 2014-01-21 01:09 KeithMorning 阅读(248) 评论(0) 推荐(0) 编辑