var obj1={'kani':'かに','neko':{'name':'ライオン','food':'犬のえさ'},'wasi':100}; var objX = $.extend(true, {}, obj1); objX['kani']='蟹';
var obj1={'kani':'かに','neko':{'name':'ライオン','food':'犬のえさ'},'wasi':100}; var obj2={'neko':{'name':'ネコ','food':'ネコのえさ'},'wasi':999,'buta':'ブタ'}; var objX = $.extend(true, {}, obj1,obj2);
(c)wacgance 2015-09-11