
Thymeleaf
样young
没有什么可介绍的,希望能够在这里学到更多的知识
展开
-
Thymeleaf直接调用后台Service之${@serviceBean.doSomething()}
方法说明: thymeleaf的官方文档中提到了${@myBean.doSomething()}可以访问容器中bean的数据。 前端thymeleaf写法: <label>性别: </label> <select name="status" th:with="type=${@dict.getType('sys_sex')}"> <option value="">--请选择--</option> ...转载 2020-05-13 14:41:03 · 2599 阅读 · 2 评论 -
Thymeleaf中data-th-*和th:*两种写法说明
经常遇见 th:fragment ="footer"的写法,突然看见data-th-fragment="footer",当时有点懵逼,找了好久资料才看到这个说法,记录一下方便回顾: 如下两图,图一是一个th:*写法,但是由于这是个html5的文件,th:*这种标签html5是识别不了的,虽然不会报错,但是会提示一些警告,很不爽,由于html5支持data-*这种属性,所以切换到Thymeleaf...转载 2019-09-05 10:30:25 · 5745 阅读 · 0 评论