1 Star 0 Fork 857

xloong / MES-MOM

forked from mes / MES-MOM 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ajax.md 567 Bytes
一键复制 编辑 原始数据 按行查看 历史

前端 Ajax 工具类使用说明

封装 Jquery Ajax 请求方法,并对 session 失效进行检测,通过整合 Shiro,利用拦截器解决 Ajax 302 无法跳转登录页问题。

// spUtil.ajax()
spUtil.ajax({
    url: '${request.contextPath}/admin/sys/user/page',
    async: false,
    type: 'POST',
    // 是否显示 loading
    showLoading: true,
    // 是否序列化参数
    serializable: false,
    // 参数
    data: {
        current: 1,
        size: 10
    },
    success: function (data) {
        console.log(data);
    }
});
Java
1
https://gitee.com/xloong978/MES-Springboot.git
git@gitee.com:xloong978/MES-Springboot.git
xloong978
MES-Springboot
MES-MOM
master

搜索帮助