摘要:
1.JSON 2.JQUERY的extends方法 3. function deepClone(obj){ let objClone = Array.isArray(obj)?[]:{}; if(obj && typeof obj "object"){ for(key in obj){ if(obj 阅读全文
posted @ 2021-03-02 17:58
abcdefgab
阅读(57)
评论(0)
推荐(0)
摘要:
function Promise (executor) { this.status = 'pending'; // 默认状态 this.value = void 0; // 默认值 undefined this.keepResolveFn = []; // 成功回调队列 this.keepRejec 阅读全文
posted @ 2021-03-02 17:15
abcdefgab
阅读(196)
评论(0)
推荐(0)
摘要:
class Promise{ //构造方法 constructor(executor){ //添加属性 this.PromiseState = 'pending'; this.PromiseResult = null; //声明属性 this.callbacks = []; //保存实例对象的 th 阅读全文
posted @ 2021-03-02 11:23
abcdefgab
阅读(242)
评论(0)
推荐(0)

浙公网安备 33010602011771号