
$.extend(obj1, obj2)๋ ์์ ๋ณต์ฌ(shallow copy) ๋ฐฉ์์ผ๋ก,obj2์ ์์ฑ์ด obj1๊ณผ ๊ฒน์น๋ฉด → obj1์ ๊ฐ์ ๋ฎ์ด์๋๋ค.๐ ์์๋ก ์ฝ๊ฒ ์ค๋ช let a = { others: "ํ์์ค ๋น๊ณ ์์", ldCd: "LD123" };let b = { others: null, ldCd: "LD456" };let merged = $.extend({}, a, b); // ๋๋ $.extend(a, b);console.log(merged.others); // โ null ๋ฎ์ด์ง ์์ ๊ฐ์ฒด๋ฅผ ๋์ค์ ์์ฑํด์ผํ๋ค.