判空

class Person {} const lrx = new Person(); // lrx.age = 15; // 定義一個不可枚舉的屬性 Object.defineProperty(lrx, 'sex', { value: 'male', enumerable: false }) Person.prototype.coutry = 'China'; console
相關文章
相關標籤/搜索