課程
/前端開(kāi)發(fā)
/JavaScript
/JavaScript深入淺出
視頻里老師為什么講默認(rèn)是false
2018-08-19
源自:JavaScript深入淺出 4-5
正在回答
1)在使用Object.defineProperty、Object.defineProperties 或 Object.create 函數(shù)的情況下添加數(shù)據(jù)屬性,writable、enumerable和configurable默認(rèn)值為false。
2)使用對(duì)象直接量創(chuàng)建的屬性,writable、enumerable和configurable特性默認(rèn)為true。
慕萊塢3170181 提問(wèn)者
xiterjia
ZvonimirS 回復(fù) xiterjia
舉報(bào)
由淺入深學(xué)習(xí)JS語(yǔ)言特性,且解析JS常見(jiàn)誤區(qū),從入門(mén)到掌握
2 回答writable與configurable都有屬性是否能修改的意思嗎
4 回答configurable為false的時(shí)候就無(wú)法再變回true?
1 回答enumerable 枚舉 為false 影響哪里
1 回答configurable為false可以修改回來(lái)嗎,用什么方法
1 回答[] == [] false [] == ![] true [] == false true
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-08-19
1)在使用Object.defineProperty、Object.defineProperties 或 Object.create 函數(shù)的情況下添加數(shù)據(jù)屬性,writable、enumerable和configurable默認(rèn)值為false。
2)使用對(duì)象直接量創(chuàng)建的屬性,writable、enumerable和configurable特性默認(rèn)為true。