What's the difference between '$(this)' and 'this'?

前端 未结 7 1590
面向向阳花
面向向阳花 2020-11-21 07:18

I am currently working through this tutorial: Getting Started with jQuery

For the two examples below:

$(\"#orderedlist\").find(\"li\").each(function          


        
7条回答
  •  梦毁少年i
    2020-11-21 08:03

    Yeah, by using $(this), you enabled jQuery functionality for the object. By just using this, it only has generic Javascript functionality.

提交回复
热议问题