2012-12-01 45 views
3

我发现,如果我走出在Chrome开发者控制台中调用的函数,我在此源代码结束:文档的Webkit开发工具`window.console._commandLineAPI`

with ((window && window.console && window.console._commandLineAPI) || {}) { 
myFunction() 
} 

有有几个与此相关的问题描述了控制台中的一些奇怪怪癖,但它们在这里并不相关。

如果键入window.console._commandLineAPI到控制台,我得到了一大堆成员名称,其中一些比别人更多的帮助:

$$: function() { [native code] } 
$_: undefined 
$x: function() { [native code] } 
clear: function() { [native code] } 
copy: function() { [native code] } 
dir: function() { [native code] } 
dirxml: function() { [native code] } 
get $0: function() { [native code] } 
get $1: function() { [native code] } 
get $2: function() { [native code] } 
get $3: function() { [native code] } 
get $4: function() { [native code] } 
getEventListeners: function() { [native code] } 
inspect: function() { [native code] } 
keys: function() { [native code] } 
monitorEvents: function() { [native code] } 
profile: function() { [native code] } 
profileEnd: function() { [native code] } 
set $0: undefined 
set $1: undefined 
set $2: undefined 
set $3: undefined 
set $4: undefined 
unmonitorEvents: function() { [native code] } 
values: function() { [native code] } 
__proto__: CommandLineAPI 

是否有任何文件上任何地方的什么这些功能呢?

回答

0

你可以在这里找到相关的文件here