【发布时间】:2022-02-09 13:13:55
【问题描述】:
我在测试 JQuery 时看到了 Chrome 的自动完成建议,并看到定义了 $$ 和 $x。它们是什么,它们来自哪里?我看到了What is the variable $x used for in Chrome?,但是$$是什么?
> $
function ( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context, rootjQuery );
} jquery.js?body=1:62
> $$
function $$() { [Command Line API] }
> $x
function $x() { [Command Line API] }
这是ogooglebar。
【问题讨论】:
-
抱歉,在近距离投票时有点过分了,那个只涵盖
$x()。 symbolhound 是一个开始寻找这样的东西的好地方:symbolhound.com/?q=webkit+%24%24