0

我正在尝试清除此超时,以便在单击此按钮时重新启动,但是它不起作用:\

var confirmAlbumDelete;
$("body").on("click", ".upload-result-wrapper .top-details .delete", function(){

    clearTimeout(confirmAlbumDelete);

    $this = $(this);
    $this.text("Yes, Delete Album").addClass("confirm-delete");

    confirmAblumDelete = setTimeout(function(){$this.text("Delete Album").removeClass("confirm-delete")},10000);
});
4

1 回答 1

4

您拼错了变量名:

confirmAblumDelete = setTimeout
        ^^
于 2012-10-05T02:52:15.970 回答