layui 表格解密

This commit is contained in:
haozq 2024-09-13 17:36:30 +08:00
parent 53787610ab
commit 784c8c6f74
1 changed files with 11 additions and 1 deletions

View File

@ -47,7 +47,17 @@ layui.use(['layer', 'element', 'table'], function () {
});
// $('#ID-laydate-type-datetime').val(getNowDay());
// 响应成功后的拦截器
$.ajaxSetup({
beforeSend: function(xhr, options) {
var originalSuccess = options.success
options.success = function(data, textStatus, jqXhr) {
data = modifyResponseData(data);
// success(data,textStatus, jqXhr);
originalSuccess.apply(this, arguments)
}
}
})
//下拉选
getConstruction();
getRegion();