我将这段代码从一个有效的教程中提取出来......我不明白index
从哪里来??
$('.thumbnail_container a.thumbnail').each(function(index) {
var remainder = (index%max_C)/100;
var maxIndex = 0;
/* debug */ $('.debug-remainder').append(remainder+'-');
if(remainder == 0) {
if(index !=0) {
thumbnail_R += thumbnailHeight;
}
thumbnail_C = 0;
} else {
thumbnail_C += thumbnailWidth;
}
});