2013年8月5日
摘要: 对象的深层拷贝Flex 中对象的拷贝使用的是 ByteArray 类的 writeObject 方法。1. 简单对象直接上代码:private function cloneObj(target:Object): *{ var copier:ByteArray = new ByteArray(); copier.writeObject(target); copier.position = 0; return copier.readObject();}var testTarget:Object = { name: 'zyc', ... 阅读全文
posted @ 2013-08-05 14:27 花森 阅读(351) 评论(0) 推荐(0) 编辑