jjsp_web/bns/js/system/public_utils.js

27 lines
533 B
JavaScript
Raw Normal View History

2024-12-12 12:06:02 +08:00
//AJAJX 调用方法拦截器
function success(data,textStatus, jqXhr){
if(data.code==201){
console.log(data.msg)
}else if(data.code==401){
top.location.href = login_url;
2024-12-12 12:06:02 +08:00
}
console.log("数据调用成功")
2024-12-12 12:06:02 +08:00
}
2024-12-13 09:35:10 +08:00
function error(event, xhr, settings, er){
console.error(event);
console.error(xhr);
console.error(settings);
console.error(er);
}
2024-12-13 14:10:18 +08:00
// (() => {
// function ban() {
// setInterval(() => {
// debugger;
// }, 50);
// }
// try {
// ban();
// } catch (err) { }
// })();