-
属性标签总结查看全部
-
用create创建对象可以枚举原型链上的属性。查看全部
-
array reduce & reduceRight查看全部
-
arr.reduce((pre,next)=>{return pre+next},firstPre); //firstPre is optional,means the first pre value, if firstPre not define,means firstPre = arr[0]查看全部
-
preventExtensions --> config:true writable:true seal --> config:false writable:true freeze --> config:false writable:false查看全部
-
configurable & writable查看全部
-
Object.getOwnPropertyDescriptor(obj,propName); Object.defineProperty(obj,propName,{ value:.., configurable:true, writable:true, }); Object.defineProperties(obj,{prN1:{..},prN2:{..}});查看全部
-
if there is get/set method in prototype, use defineProperty to reset property when use 'defineProperty', writable,configurablue default to be FALSE.查看全部
-
get and prototype查看全部
-
if(a!=undefined) means 'a' cannot be undefined and NULL if(a!==undefined) means 'a' cannot be undefined but can be NULL查看全部
-
实例化的对象本来没有prototype,只有__proto__,==constructor.prototype const obj = Object.create(obj's__proto__);查看全部
-
delete property 只能删除对象本身上的属性 不能删除原型链上的属性查看全部
-
严格模式 非严格模式区别查看全部
-
try 中出现error才执行catch 但不管有没有error都会执行finally查看全部
-
创建对象-new/原型链查看全部
举报
0/150
提交
取消