The
$ symbol is a characteristic character representing variables in php, and it also has many functions in js.
1.1 is used to represent variables.
Example:
var str='hello world !';
var $str='hello world !';
1.2 In regular expressions, match the end.
1.3 Due to the influence of prototype.js (a framework used to encapsulate some commonly used functions for easy operation), $ is often used to represent a function that finds objects. In fact, it is a custom function. Using $ is just simple, unlike using other The characters are the same.
Example:
HTML code