取模的應用

一、各行變色, 思路:用for循環,根據索引值取模來肯定變色行數的背景, for(var i=0;i<ali.length;i++){ if(i%2 == 0) { 代碼塊 }else { 代碼塊 } } 二、
相關文章
相關標籤/搜索