我正面临一个 jquery 的问题。我有一个表,其中有多行。当我单击其中一行(仅一次)时,我应该使用 jquery 发送帖子。问题是我不能为此使用 one() 函数,因为该事件发生在所有表格单元格中。这是代码:
        $("#tabel_notificari").one("click", ".rand_notif td:last-child" ,function(e){
        e.stopPropagation();
        var idNotif=$(this).parent().attr("record");
        $.post("../template/masa/gestionare_notificare.php",{id:idNotif, status:3}, function(data){
        $(this).parent().prev(".spacer_2").remove();
        $(this).parent().fadeOut(500);return true;});
    });
有人能帮我解决这个问题吗?谢谢。