前端JS获取ModelMap的值 2020-09-03

tech2023-10-17  102

问题描述:

前端获取ModelMap的值

Controller:

@GetMapping("/turnDispatch/{workNo}") public String turnDispatch(@PathVariable("workNo") String workNo, ModelMap eap) { TbWorkOrder tbWorkOrder = TbWorkOrderService.selectOrderByWorkNo(workNo); eap.put("dispatchList", tbWorkOrder ); return prefix + "/turnDispatch"; } JS: var workNo = '[[${dispatchList.workNo}]]';

最新回复(0)