懵逼了。。。。。。這段代碼是啥意思?
for(var i = 0; i < aLi.length; i++) {
??????????? aLi[i].index = i;
??????????? aLi[i].onmouseover = function() {
??????????????? for(var i = 0; i < aLi.length; i++) {
??????????????????? aLi[i].className = "";
??????????????? }
??????????????? this.className = "active";
??????????????? for(var j = 0; j < aDiv.length; j++) {
??????????????????? aDiv[j].className = "hide";
??????????????? }
??????????????? aDiv[this.index].className = "show";
??????????? }?????? ?
??????? }
2016-09-20
切換? 選項(xiàng)卡????? 給li進(jìn)行編號(hào)? 012??? 然后 div對(duì)這個(gè)012??? 對(duì)上了 讓顯示相應(yīng)的 div