on绑定未来元素无效
….
$(.cancle-reply).on('click',function(){
alert(1);
});
上面的不行 试试下面的
$(document).on('click','.cancle-reply',function(){
alert(1);
});
….
$(.cancle-reply).on('click',function(){
alert(1);
});
上面的不行 试试下面的
$(document).on('click','.cancle-reply',function(){
alert(1);
});
0条评论