拦截器中设置未登录拦击跳转链接
response.sendRedirect(request.getContextPath() + "/loginAndRegister/loginAndRegister?origin="+request.getRequestURI());
js 中代码
var url = "${param.origin}";
相当于java后台获取
request.getParameter("origin");
拦截器中设置未登录拦击跳转链接
response.sendRedirect(request.getContextPath() + "/loginAndRegister/loginAndRegister?origin="+request.getRequestURI());
js 中代码
var url = "${param.origin}";
相当于java后台获取
request.getParameter("origin");