HTML中th标签

.html中所有th标签关键字 功能介绍 案例 th:id 替换id th:text 文本替换

description

th:utext 支持html的文本替换

content

th:object 替换对象
th:value 属性赋值 th:with 变量赋值运算
th:style 设置样式
th:onclick 点击事件 th:each 属性赋值 th:if 判断条件 th:unless 和th:if判断相反 Login th:href 链接地址 <a th:href="@{/login}" th:unless= s e s s i o n . u s e r ! = n u l l &gt; L o g i n &lt; / a &gt; t h : s w i t c h 多 路 选 择 配 合 t h : c a s e 使 用 &lt; d i v t h : s w i t c h = &quot; {session.user != null}&gt;Login&lt;/a&gt; th:switch 多路选择配合th:case使用 &lt;div th:switch=&quot; session.user!=null>Login</a>th:switchth:case使<divth:switch="{user.role}"> th:fragment th:switch的一个分支

User is an administrator

th:includ 布局标签,替换内容到引入的文件 th:replace 布局标签,替换整个标签到引入的文件
th:selectd selected选择框选中 th:selected="(${ xxx.id} == ${configObj.dd})" th:src 图片类地址引入 App Logo th:inline 定义js脚本可以使用变量
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值