我有这些按钮
<button id="btn1" type="button" class="btn btn-default btn-sm margin-left-1">
<span class="glyphicon glyphicon-chevron-down"></span>
</button>
<button id="btn2" type="button" class="btn btn-default btn-sm margin-left-1">
<span class="glyphicon glyphicon-chevron-down"></span>
</button>
...etc
我想删除该类glyphicon-chevron-down
并glyphicon-chevron-up
在单击该按钮后添加..它的 twitter bootstrap 正在崩溃,但我想要一个带有图标的按钮 :-)
记录的 id 可以放在按钮标签或span 标签,没关系,有什么办法可以检查应用的 CSS 吗?
例如,${#element}.existCSS?('glyphicon-chevron-down')
?