on绑定未来元素无效

….

    $(.cancle-reply).on('click',function(){
        alert(1);
    });

上面的不行 试试下面的

    $(document).on('click','.cancle-reply',function(){
        alert(1);
    });

--END--


 点赞  打赏
  • 暂无评论