$ is a famous jQuery symbol. In fact, jQuery encapsulates all functions in a global variable jQuery, and $ is also a legal variable name. It is an alias of the variable jQuery:
window.jQuery ; // jQuery(selector, context)
Note: The $function name you see may not be jQuery(selector, context), because many JavaScript compression tools can rename function names and parameters, so the compressed jQuery source code $function may become a(b,c).
Most of the time, we use $ directly (because it is easier to write). However, if the $ variable is unfortunately occupied and cannot be changed, then we can only ask jQuery to hand over the $ variable, and then we can only use the jQuery variable:
$; // jQuery(selector, context)##jQuery.noConflict();