实现方式:
<a href="javascript:void(0);" class="centerLeftNav active" id="1></a>
<a href="javascript:void(0);" class="centerLeftNav" id="2"></a>
var aTagId = $(".centerLeftNav.active").attr("id");
实现方式:
<a href="javascript:void(0);" class="centerLeftNav active" id="1></a>
<a href="javascript:void(0);" class="centerLeftNav" id="2"></a>
var aTagId = $(".centerLeftNav.active").attr("id");