转载自:http://www.cnblogs.com/TomXu/archive/2011/12/28/2286877.html
function looper() {
var i = 0,
max,
myarray = [];
// ...
for (i = 0, max = myarray.length; i < max; i++) {
// 使用myarray[i]做点什么
}
}
转载自:http://www.cnblogs.com/TomXu/archive/2011/12/28/2286877.html
function looper() {
var i = 0,
max,
myarray = [];
// ...
for (i = 0, max = myarray.length; i < max; i++) {
// 使用myarray[i]做点什么
}
}