$.ajax({
contentType:“application/json;charset=utf-8”,
type: “POST”,
url: “/journalsystem/logtemplate/generaltemplate/range”,
data: JSON.stringify(data.field),
dataType:“json”,
success: function (data1) {
if (data.code == 1) {
layer.msg(data1.msg,{icon:2});
} else {
layer.msg(data1.msg,{icon:1});
}
//刷新数据 表格
tableIns.reload();
},
error: function () {
layer.alert(“操作请求错误,请您稍后再试”,function(){ layer.closeAll();
});
//刷新数据 表格
tableIns.reload();
}
});
ajax
最新推荐文章于 2022-05-18 11:56:21 发布