Home >Web Front-end >JS Tutorial >You can directly use the $/$$ function for debugging in Firefox/Chrome/Safari_javascript skills
Then I tested it in various browsers and found that it is available in Firefox/Chrome/Safari, but not in IE9/Opera.
$ is equivalent to document.getElementById
$$ is equivalent to document.querySelectorAll
Type $ in the chrome console, $$ is clear at a glance
These two functions are built-in with browser debugging tools.