學習資源推薦vue
let obj = {}; let _name = 'tom'; Object.defineProperty(obj, 'name', { set(newValue) { _name = newValue; }, get() { return _name; } })