03 2020 档案
摘要:'use strict';/*异步数据模块加载器功能1、加载器存在 主任务、副任务、子任务newRequire 表示加载主任务,主任务并发执行,newRequire(param1),执行主任务的时候,暂停副任务,主任务结束后,再执行副任务。onRequireFree 表示加载副任务,任务放队列,主任
阅读全文
摘要:class LCache{ constructor(load,exec){ this.load=load;//加载函数 this.exec=exec;//执行函数 this.maxLen=100;//最大缓存数 this.nearTimeMap={};//最近访问时间 this.resMap={};
阅读全文
摘要://bitmap 判断是否存在 Buffer.prototype.hasBit=function(num){ const n=num>>3; const k=num%8; return (this[n]&1<<k)!==0 } Buffer.prototype.setBit=function(num
阅读全文
摘要:demo地址 http://106.13.201.82/demo/page_change.html page_change.vue <template> <div class="flex" :class="direction" :style="{width:width,height:height}"
阅读全文
摘要:function getText(time,callback) { setTimeout(function () { callback(time) },time) } var callbackMap={};//记录加载完成的回调 var resMap={};//记录url var loadbackM
阅读全文