Browser default global $ function
问题 I've noticed that there appears to be a global function called $ in some browsers which is NOT jQuery, but I can't seem to find any documentation on it. What is it? Firefox: Chrome: 回答1: Chrome and Firefox dev tools include some useful shortcuts/helpers to manipulate the DOM within the console. These shortcuts are pretty similar for both: $ for DOM selection, $0 - $4 for "last X selections" and more. For full reference see: Chrome Dev Tools Command Line API - https://developers.google.com/web