Created
April 18, 2012 08:17
-
-
Save ryanhanwu/2412005 to your computer and use it in GitHub Desktop.
cool usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Know arguments number by length | |
function newFunction(a,b,c,d,e,f,g) { | |
return false; | |
} | |
newFunction.length = 7; | |
//return function callee for calling | |
function showSomething(a){ | |
alert(a); | |
return arguments.callee; | |
} | |
showSomething('a')('b')('c'); | |
// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment