0

我有这个代码:

function delTempBill() {
    if ($('#bills_ID').val() == '') {
        popUpMessage("Error", "choose bills to delete", 2);
    } else {
        $.ajax({
            url: "DelTempBill.php",
            type: "POST",
            data: {
                draft: "ok",
                bills_ID: selectedTempId
            },
            dataType: "json",
            success: function (data2) {
                if (parseInt(data2) > 0) {
                    $("#tempBills" + selectedTempId).remove();
                    popUpMessage("Done", "Bills was Delete", 2);
                    newGrid();
                }
            }
        });
    }
}

此代码是从表中删除账单,当我调用此函数时,账单已被删除但消息无法显示。

为什么 ?

4

0 回答 0