java代码中:
@RequestMapping("/aaa")
public String aaa(HttpServletRequest request, HttpServletResponse response) throws Exception {
// 转发到bbb.do中
return "forward:bbb.do?a=" + "参数值";
}
@RequestMapping("/bbb")
public String bbb(HttpServletRequest request, HttpServletResponse response) throws Exception {
// 执行代码
// String a = request.getParameter("a");
}
js代码中的页面跳转
window.location.href="url/bbb.do?a="+'参数值';