thymeleaf layui中th:checked 多条件组合的使用方式

thymeleaf layui中th:checked 多条件组合的使用方式,第1张

1、thymeleaf th:checked 多条件组合

 //后台设置session的值
 request.getSession().setAttribute("user", htUser);

页面的写法:非空且包含指定字符

th:checked="${user.operateDbs != null && #strings.contains(user.operateDbs,db.id)}">

					
					
						
					
				

做个记录,方便后面查询!

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1296807.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-10
下一篇 2022-06-10

发表评论

登录后才能评论

评论列表(0条)

保存