Created
May 28, 2014 02:56
-
-
Save leohxj/d6ae9572e7b26167fde5 to your computer and use it in GitHub Desktop.
arguments对象转换成一个数组最好的办法就是 Array.prototype.slice.call
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 y(){ | |
var args = Array.prototype.slice.call(arguments); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment