Created
May 22, 2013 20:22
-
-
Save ginpei/5630589 to your computer and use it in GitHub Desktop.
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
function f(aaa, bbb) { | |
console.log('aaa='+aaa, 'bbb='+bbb); | |
} | |
var context = null; // 何でもいい(thisになる) | |
var args = [ 'A', 'B' ]; // 引数に展開される | |
f.apply(context, args); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment