240 发简信
IP属地:云南
  • 两个问题:1、当jquery全局配置后不执行success方法,$.ajaxSetup({
    dataType: "json",
    cache: false,
    headers: {
    "token": token
    },
    xhrFields: {
    withCredentials: true
    },
    complete: function(xhr) {
    //token过期,则跳转到登录页面
    if(xhr.responseJSON.code == 401){
    parent.location.href = baseURL + 'login.html';
    }
    }
    });
    2、js saveAs方法如何写

    spring mvc Ajax下载excel

    spring mvc Ajax下载excel 必要条件 mvc代码 import com.tw.study.springboot.entity.Excel;import or...