$ (это) по сравнению с этим в jQuery

Между чем различие $(this) и this в jQuery? Вот два других использования:

 $(document).ready(function() {
   $("#orderedlist").find("li").each(function(i) {
     $(this).append( " BAM! " + i );
   });
 });


 $(document).ready(function() {
   // use this to reset several forms at once
   $("#reset").click(function() {
     $("form").each(function() {
       this.reset();
     });
   });
 });
5
задан penguru 3 August 2010 в 19:21
поделиться