Home>

It's very basic, but jquery loop processing
I usually write the following code. Of course it works, but
I know that $.each (), eq (), etc. exist in the iteration, but it seems to be jquery Please let us know if you have any advice on smart or practical loop processing.

PureJS-like descriptions like this are probably not practically practiced
Because I felt skeptical, I asked a question.

* len is a pure number, not an array.

for (var i = 0;i<len;i ++) {
             $('. hoge'). append ('<p>' + i + '</p>');
           }