题解 | #监听对象#
监听对象
https://www.nowcoder.com/practice/2cd8f8421e9b42b98152f56ef5e0ac79
let keys = Object.keys(person) for (let item of keys) { let key = person[item] Object.defineProperty(person, item, { set(newvalue) { key = newvalue _render(ul); }, get() { return key } }) }