使用th:style标签:
th:style="'display:' + @{(${value} ? 'none' : 'inline-block')} + ''"
其中value是后台返回的值
贡献者
分享
程序员培乐
这家伙很懒,只想把你留下。
该资源仅限VIP专享下载