上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页
摘要: JavaScript主任务、微任务、宏任务的执行顺序,输出1-9 setTimeout(function() { console.log('7') }); new Promise(function(resolve) { console.log('1'); resolve(); }).then(fun 阅读全文
posted @ 2022-09-24 09:53 无工时代 阅读(69) 评论(0) 推荐(0)
摘要: const appendChild=document.head.appendChilddocument.head.appendChild=function(dom) { if(dom.tagName 'SCRIPT'){ //加载js LCache.loadAll(dom.src,onload) } 阅读全文
posted @ 2022-03-04 15:07 无工时代 阅读(277) 评论(0) 推荐(0)
摘要: Array.prototype.findSort=function(num1) { var hasSortArr=this; var l=0,r=hasSortArr.length; var lock=-1; var dis=0; var dis1=0,dis2=0; if(hasSortArr.l 阅读全文
posted @ 2022-01-03 21:58 无工时代 阅读(266) 评论(0) 推荐(0)
摘要: Array.prototype.findSort=function(num1) { var hasSortArr=this; var l=0,r=hasSortArr.length; var lock=-1; var dis=0; var dis1=0,dis2=0; if(hasSortArr.l 阅读全文
posted @ 2021-12-31 19:11 无工时代 阅读(43) 评论(0) 推荐(0)
摘要: 使用:输入文件夹路径数组 const path = require("path"); function resolve(dir) { return path.join(__dirname, "..", dir); } //demo plugins: [ new AliasDirReplacement 阅读全文
posted @ 2021-12-25 22:05 无工时代 阅读(296) 评论(0) 推荐(0)
摘要: const getV=require('./getV') const numTobase62=require('./numTobase62') function getUniformLBPMap() { const map={} let index=0; for(let i=0;i<256;i++) 阅读全文
posted @ 2021-11-26 19:11 无工时代 阅读(67) 评论(0) 推荐(0)
摘要: const PNG = require("pngjs").PNG; const fs=require('fs') require('./sortAdd') const getGrayData=require('./getGrayData') const {getLbpData,getUniformL 阅读全文
posted @ 2021-11-26 19:09 无工时代 阅读(70) 评论(0) 推荐(0)
摘要: var https = require('https'); var qs = require('querystring'); const client_id=''; const client_secret=''; function httpsGet(){ return new Promise(fun 阅读全文
posted @ 2021-11-19 12:20 无工时代 阅读(186) 评论(0) 推荐(0)
摘要: /* 并发加载函数 id:唯一值 syncFunc:加载函数 */ const _map={} const _startTimeMap={} async function conCurentLoad (id,syncFunc) { //兼容并发加载的情况 if(!_map[id]){ _map[id 阅读全文
posted @ 2021-09-24 11:18 无工时代 阅读(117) 评论(0) 推荐(0)
摘要: 推荐一个离线应用框架-lcache.js http://www.lcache.tech/ 阅读全文
posted @ 2021-09-09 10:33 无工时代 阅读(52) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页