This is rarely used in jquery. When I looked at the code, I found that it was used, so I debugged the value of this and thought that was the case. Still quite useful. Here is a summary of the differences and uses of this and $(this).
What does $(this) generate?
What does $() generate? In fact, $()=jquery() means that it returns a jquery object.
Usually we use $() directly for simplicity. In fact, this function omits a parameter context. Select the matching object based on the selector, that is, $(selector, context), and return it in the form of a jQuery wrapper set.
Context can be a Dom object collection or a jQuery packaging set. Passing it in means selecting matching objects from the context. If it is not passed in, it means the scope is the document object (that is, all objects on the page), that is, $(selector)=$ (selector,document).
This refers to the html object that calls the function.
Example:
This here is actually an Html element (textbox), and this is in js. The textbox has a text attribute, so there is no problem in writing it this way.
Conclusion:
This indicates that the current context object is an html object, and you can call the properties and methods owned by the html object.
$(this), the context object represented is a jquery context object, which can call jquery methods and attribute values.
Instance (tab):