2010å¹´04æ28æ¥22:00 ã«ãã´ãªLightweight Languages javascript - Array.prototype.slice.apply(arguments) // å¼æ°ä¸çºé åå ãããªã®ã§ãã⦠細ããJavaScriptã®ä»æ§ãç¿æ £ããã¯é - ä¸çå µ var func = function() { var leng = arguments.length; for(var i = 0, arr = []; i < leng; i++){ arr[i] = arguments[i] * 10; } alert(arr); }; ããæ¸ãã¾ãã var func = function() { var args = Array.prototype.slice.apply(arguments); var arr = args.map(function(n){ r
{{#tags}}- {{label}}
{{/tags}}