摘要: Thymeleaf 的条件判断是 通过 th:if 来做的,只有为真的时候,才会显示当前元素 <p th:if="${testBoolean}" >如果testBoolean 是 true ,本句话就会显示</p> 取反可以用not, 或者用th:unless. <p th:if="${not te 阅读全文
posted @ 2020-02-04 12:42 MyBeans 阅读(1831) 评论(0) 推荐(1) 编辑
摘要: 1.字符串/图片/map集合 @GetMapping("/hello") public String test(Model model){ String message="first thymeleaf !!"; model.addAttribute("message",message); User 阅读全文
posted @ 2020-02-04 11:58 MyBeans 阅读(819) 评论(0) 推荐(0) 编辑
摘要: Vue(十)---路由 Vue.js 路由允许我们通过不同的 URL 访问不同的内容。通过 Vue.js 可以实现多视图的单页Web应用(single page web application,SPA)。 需要引入vue-router.js 1.基本介绍: https://www.cnblogs.com/superlizh 阅读全文
posted @ 2020-02-04 10:46 MyBeans 阅读(239) 评论(0) 推荐(0) 编辑