function cancel(orderid)
{
art.confirm('确定要取消订单吗?',
function(){
var url = "<?php echo U('center/school/Apporder/ordercancel&orderid=')?>"+orderid;
$.get(url, function(msg){
var data = eval('(' + msg + ')');
if (data.code == 0) {
art.tips({content:data.message,type:1});
location.reload();
}else{
alert(data.message);
}
});
},
function(){} //这里为空,会显示取消按钮,不写取消按钮不会出现
);
}
art.confirm 确认框,art.tips消息提示框
jquery确认框和消息提示
最新推荐文章于 2022-10-11 10:15:45 发布