前端alert之后,点击确定,进行页面刷新
$.ajax({
url:'../zjjgx/cxZjjgx',
data: {
'zjjgx':s},
type: 'post',
dataType :'json',
success: function (obj) {
if (obj.success){
layer.alert(obj.msg,'',function () {
location.reload();
});
}else {
layer.alert(obj.msg,'',function () {
location.reload();
});
}
},
error: function () {
layer.alert("后台出错,请联系管理员",'',function () {
location.reload();
});
}
});