http://la.ma.la/blog/diary_200711270645.htm JavaScript ã®è©±é¡ãåºãã®ã§ AS3 ã§ã®æ¹æ³ããActionScript3 ã§ã³ã¢ã¯ã©ã¹ãªãã¸ã§ã¯ãã deep copy ããã«ã¯ã public static function clone(arg:*):* { var b:ByteArray = new ByteArray(); b.writeObject(arg); b.position = 0; return b.readObject(); } var hash:Object = { ary: [0,1,2,3] }; var hashClone:Object = ObjectUtil.clone(hash); hash.ary[3] = 'a'; hash; // #<Object:{ary:0, 1, 2, a}> hashCl
{{#tags}}- {{label}}
{{/tags}}