转自:http://blog.chinaunix.net/uid-20577907-id-359126.html
 
1.Ext.apply 无法复制 Ext.data.JsonStore 等数据源相关的类型
var store2 = new Ext.data.JsonStore({});
var store3={};
Ext.apply(store2,magazine_store); //效果无用.store2仍引用magazine_store,无法独立使用.
Ext.apply(store3,magazine_store); //效果同上.
store3=Ext.apply(store2,magazine_store); //效果同上.
2.复制JSON对象
 
var records = []; store.each(function(r){ records.push(r.copy()); }); var store2 = new Ext.data.Store({ recordType: store.recordType }); store2.add(records);
 Extjs    复制对象
原文:http://www.cnblogs.com/mr-level/p/4617931.html