2
我想从我的控制器添加数据以呈现百里香叶的进度条。我尝试了不同的方法,但没有工作。如何从带有百里香叶的控制器的twitter bootstrap进度条中获取数据?我对Spring-mvc和百里香叶很有新意
<div class="progress progress-striped">
<div class="progress-bar progress-bar-warning" role="progressbar" **th:aria-valuenow="${model}"** aria-valuemin="0" aria-valuemax="100" **th:style="@{'width:'+ ${percent} +';'}"**>
<span class="sr-only">30% Complete (warning)</span>
</div>
找到它:th:attr =“aria-valuenow = $ {model}”th:style =“'width:'+ $ {percent} +';'” – StevenSC