我已经为这个答案寻找了很多地方(简单)
我找到了这个
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#jai">
<span class="pull-right"><i class="icon-chevron-up"></i></span>
Jai
</a>
</div>
<div id="jai" class="accordion-body collapse in">
<div >
<div class="accordion-inner">
body content 1
</div>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
<span class="pull-right"><i class="icon-chevron-down"></i></span>
jai2
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div>
<div class="accordion-inner">
body content 2
</div>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse3">
<span class="pull-right"><i class="icon-chevron-down"></i></span>
jai3
</a>
</div>
<div id="collapse3" class="accordion-body collapse">
<div>
<div class="accordion-inner">
body content 3
</div>
</div>
</div>
</div>
//jquery --- //您需要运行引导程序
$('div.accordion-body').on('shown', function () { console.log($(this).parent("div").find(".icon-chevron-down").html());// this will show you html selected
$(this).parent("div").find(".icon-chevron-down").removeClass("icon-chevron-down").addClass("icon-chevron-up");
});
$('div.accordion-body').on('hidden', function () { console.log(this);
$(this).parent("div").find(".icon-chevron-up").removeClass("icon-chevron-up").addClass("icon-chevron-down");
//提琴手视图工作示例