摘要:
浅拷贝<scripttype="text/javascript">varoOriginal={memNum:1,//numbermemStr:"Iamastring",//stringmemObj:{test1:"Oldvalue"//we'lltest},memArr:["astring",{test2:"Trychangingme"}]};varextend=function(result,source){for(varkeyinsource)result[key]=so 阅读全文