js中for循环问题
if (trigger && length > 0) {
trigger.onclick = function() {
for (var index = 0; index < length; index += 1) {
buttons[index].style["cssFloat" in trigger.style? "cssFloat": "styleFloat"] = "left";
}
};
}
for循环这里 ; index += 1这么写有啥目的,平时我们写的不都是index++么