Programming

(JavaScript) JavaScript variable number of arguments to function

steloflute 2013. 3. 23. 23:30

http://stackoverflow.com/questions/2141520/javascript-variable-number-of-arguments-to-function

 

function foo() {
 
for (var i = 0; i < arguments.length; i++) {
    alert
(arguments[i]);
 
}
}