-1

Basically, I'm trying to create 5 rows of tables, using a loop function. I've already have the codes for creating one row. How do I run the script 5 times in jQuery ?

I don't quite understand how .each(); works to do a loop. Can somebody please explain to me? Thanks.

4

1 回答 1

9
for (var i=0; i<5; ++i ){
  doSomething();
}
于 2012-06-19T22:45:37.203 回答