09 2023 档案
摘要:1 // ES6 ES2015 2 // https://promisesaplus.com 3 4 const PROMISE_STATUS_PENDING = 'pending' 5 const PROMISE_STATUS_FULFILLED = 'fulfilled' 6 const PRO
阅读全文
摘要:响应式原理实现 1 // 保存当前需要收集的响应式函数 2 let activeReactiveFn=null 3 class Depend{ 4 constructor(){ 5 this.rectiveFns=new Set() 6 } 7 depend(){ 8 if(activeReacti
阅读全文