2013年9月16日
摘要: Ext.apply & Ext.Object.merge &Ext.clone前两天写Ext的时候,碰到对象引用的问题,本想Ext有自己的拷贝对象的方法,Ext.apply(),那就用呗~~ 然,问题依然存在啊。于是,猜想:Ext.apply不能拷贝深层对象,深层对象依然是引用。先看源码: /** * Copies all the properties of config to the specified object. * Note that if recursive merging and cloning without referencing the original . 阅读全文
posted @ 2013-09-16 15:10 花森 阅读(2486) 评论(0) 推荐(0) 编辑