题解 | #监听对象#
监听对象
https://www.nowcoder.com/practice/2cd8f8421e9b42b98152f56ef5e0ac79
for(key in person) { let item = person[key]; Object.defineProperty(person, key, { get() { return item; }, set(val) { item = val; _render(ul); } }); }就这一段,懒得包装了
#牛客专项练习#