-3
如何隐藏我们在JavaScript函数中所做的事情?
我的意思,而不是如何隐藏我们在JavaScript函数中所做的事情?
function alpha(){
var a=Math.PI;
//other stuff
return a;
}
alpha();//= a
alpha;//=function alpha(){...}
要
alpha;//='presetted function placeholder'
Chrome Functions Also Following This。例如:
$ == function $(selector, [startNode]){ [Command Line API] }
return "function " + name + "(" + funcArgsSyntax + ") { [Command Line API] }";
你为什么要这样做? – zzzzBov
谷歌混淆,如果这是你的意思。 –
@esdmr,你已经描述了*你想要什么,但不是**为什么**你想要这个功能。这似乎是[XY问题](http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem)。 – zzzzBov