我有这段代码:
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();
}
}
});
}
}
此代码用于从表中删除账单,当我调用此功能时,账单被删除但邮件无法显示。
为什么?