最新回答 / UNhandsome
for (i=0 ;i<clear_ctrl.length;i++){ clear_main[i].className = clear_main[i].className.replace(' main-i_active',''); clear_ctrl[i].className = clear_ctrl[i].className.replace(' ctrl-i_active',''); }不知道是不是这个问题,(' main-i_active','')和(' ctrl-i_active',''...
2016-06-02
最新回答 / 慕婉清5048815
<script type="text/javascript"> //1.数据定义(实际环境中应由后台给出) var data = [ {img:1,h1:'Creative',h2:'DUET'}, {img:2,h1:'Friendly',h2:'DEVIL'}, {img:3,h1:'Tranquilent',h2:'COMPATRIOT'}, {img:4,h1:'Insecure',h2:'HUSSLER'}, ...
2016-05-12
最新回答 / 稳稳1990
<...code...>a的href设置了点击执行switchSlider({{index}})方法,在switchSlider({{index}})方法里面有添加className<...code...>
2016-05-02