var list = $("#test li");//(2*1,2*1+1),(2*3,2*3+1),(2*5,2*5+1)
var len = list.length;
for(var i = 0; i < len; i++){
if((i - 1) % 2 == 0){ //质数
if(i * 2 <= len){
list[i * 2].className = "atv";
list[i * 2-1].className = "atv";
}
}
}
动态支持无限个有规律的间隔