Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在服务器上创建一个临时共享对象的副本到另一个永久共享对象。这样做的有效方法是什么?
谢谢你,纳雷什
我不确定这是不是更有效的方法,但一个好的旧解决方案是使用for循环:
for
var names = source.getPropertyNames(); for (var prop:String in names) { var value:Object = source.getProperty(names[prop]); destination.setProperty(names[prop], value); }