我是tab效果,当选中效果class="trol active"的时候,dot增加pitch类名
否则pitch消失。
选中状态class=“active”
原始:
<div class="dot">
<span>1</span>
<span>2</span>
<span class="trol">3</span>
<span>4</span>
</div>
效果:
<div class="dot pitch">
<span>1</span>
<span>2</span>
<span class="trol active">3</span>
<span>4</span>
</div>