摘要: class Observer { constructor(value){ this.value = value if(Array.isArray(value)){ // 数组的逻辑 }else { // 对象的逻辑 this.walk(value) } } walk(obj) { const key 阅读全文
posted @ 2023-02-04 21:17 懒惰ing 阅读(18) 评论(0) 推荐(0) 编辑