Thymeleaf在html中的输出
thymeleaf在页面中输出格式th:field,其中filed是各标签中的属性1、在table中遍历List //输出序列号 序号 //输出变量值 代码 //点击事件,渲染结果οnclick="edit('23')" >编辑2、if-else可以使用switch-case来实现 true false 3、js中赋值 var msg = [[${msg}]];注:${}中的变量都是从后台传入的,在SpringMVC中:ModelAndViewmav=newModelAndView("/pagepath");mav.addObject("msg","error");4、thymeleaf中输出html标签使用th:utextWelcome to our grocery store!//效果:Welcome to our fantastic grocery store!————————————————版权声明:本文为CSDN博主「houjguang」的原创文章