679
社区成员
发帖
与我相关
我的任务
分享
$("#btnWebApi").click(function () {
$.ajax({
type: "post",
url: "/SCRP0103/NewCost",
success: function (data) {
if (data == 'OK') {
toastr.success('車資更新成功');
parent.$("#rideCostInfo").bootstrapTable('refresh');
} else if (data == '0') {
toastr.warning('沒有需要更新的數據')
} else {
toastr.error(data)
}
}
})
});
$("#btnWebApi").click(function () {
$("#loading").show();//显示加载提示的div
$.ajax({
type: "post",
url: "/SCRP0103/NewCost",
success: function (data) {
$("#loading").hide();//隐藏加载提示的div
if (data == 'OK') {
toastr.success('車資更新成功');
parent.$("#rideCostInfo").bootstrapTable('refresh');
} else if (data == '0') {
toastr.warning('沒有需要更新的數據')
} else {
toastr.error(data)
}
}
})
});