2012-12-01 44 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