22不小了
2015-10-07 23:23
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++么
一样的意思 只是简写而已
都一样的,写法不同而已
CSS深入理解之float浮动
75964 学习 · 461 问题
相似问题