后台返回值:
@GetMapping("/flight/{flight}/{deptime}")
public Object toFlightList(@PathVariable String flight,@PathVariable String deptime, HttpSession session){
session.setAttribute(key,value)
return "user/booking/flight_list";
}
前台flight_list.jsp页面:(PS:放在js文件里会识别不了)
<script type="text/javascript">
console.log("参数",'${key}');
</script>