js代码
动态网页+layui渲染(级联下拉列表)
后台将第一个下拉列表的数据传到前台
public String getApiInfoByTypePage(@PathVariable String type, Model model, HttpServletRequest request) { ListtypeList1 = apiService.findApiTypeByPid(1); log.error(typeList1); model.addAttribute("typeList1", typeList1); }
前台页面用的是Thymeleaf的遍历将数据加载出来,然后layui自动渲染