æ稿è ï¼éä¸ æé | æ稿æ¥ï¼2011.01.12 | [AS 3][ActionScript][Tips][éä¸ã¼ã] ãµãã¤ã®é åãé£çµããã«ã¯ãArray.concat()ã¡ã½ãããç¨ãã¾ããã¨ããããGrant Skinneræ°ãtwitterã§é¢ç½ãææ³ãç´¹ä»ãã¦ãã¾ãããJavaScriptã«ã¤ãã¦æ¸ããããã®ã®ãActionScript 3.0ã§ã使ãã¾ãã ããã¯ã²ã¨ã¤ã®é å(arr1)ã«å¯¾ãã¦Function.apply()ã¡ã½ããã«ããArray.push()ã¡ã½ãããé©ç¨ããããã²ã¨ã¤ã®é å(arr2)ã¯ç¬¬2å¼æ°ã¨ãã¦æ¸¡ãã¦ãã¾ãã¨ãããã®ã§ããããã¨ãåãã®é åã«å¯¾ãã¦Array.push()ã¡ã½ãããå¼åºããããµãã¤ç®ã®é åã¨ã¬ã¡ã³ãããã®å¼æ°ã«æ¸¡ããã¾ãããããã£ã¦ããµãã¤ã®é åãé£çµãããã®ã§ãã arr1.push.apply(arr1, arr2); S
{{#tags}}- {{label}}
{{/tags}}