描述
Object.defineProperty(obj, prop, descriptor)方法接收三个参数:需要添加或修改属性的对象,属性名称,属性描述options。
但是如果使用严格模式“use strict",将会报错,和给undefined赋值一样:
Object.defineProperty(obj, prop, descriptor)方法接收三个参数:需要添加或修改属性的对象,属性名称,属性描述options。
但是如果使用严格模式“use strict",将会报错,和给undefined赋值一样:
转载于:https://www.cnblogs.com/Mr-dao/p/6689665.html