th标签
1、th:if比较字符串
判断是不是为空:null:
不为空
为空
判断是不是为空字符串: “”
空的
判断是否相同:
相同于jack,
相同于ywj,
不相同于jack,
是否包含(分大小写):
包ez
包j
是否包含(不分大小写)
包j
参考:
https://blog.csdn.net/qq_41765712/article/details/103285898
2、用switch-case 实现 if-else:
参考:https://blog.csdn.net/beguile/article/details/86748011
3、th:onclick
th:onclick传参,需要使用[[]]将参数包括起来
参考:
https://blog.csdn.net/qq_40059532/article/details/104143937