[ActionScript 3.0] AS3.0 复制xml,并赋值
var template:XML= <person><name><first>FIRST</first><last /></name></person>; var me:XML = template.copy(); me.name.first = "mims"; me.name.last = "wright"; trace(template); trace(me);
------------------------------------------------------------------
Always put yourself in the other's shoes.If you feel that it hurts you,it probably hurts others,too.------------------------------------------------------------------