4-1對象結(jié)構(gòu)
對象的key
轉(zhuǎn)換成字符串處理
對象key(字符串)
對象結(jié)構(gòu)
4-2 創(chuàng)建對象 原型鏈
對象字面量 ? ?new(通過new 創(chuàng)建 新對象原型會指向構(gòu)造器prototype屬性)
原型鏈
原型鏈
對象創(chuàng)建 Object.create
把create后對象作為新創(chuàng)建的原型
4-3屬性操作
轉(zhuǎn)換成字符串處理
對象字面量 ? ?new(通過new 創(chuàng)建 新對象原型會指向構(gòu)造器prototype屬性)
把create后對象作為新創(chuàng)建的原型
4-3屬性操作