上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页
摘要: 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 无工时代 阅读(23) 评论(0) 推荐(0)
摘要: 使用:输入文件夹路径数组 const path = require("path"); function resolve(dir) { return path.join(__dirname, "..", dir); } //demo plugins: [ new AliasDirReplacement 阅读全文
posted @ 2021-12-25 22:05 无工时代 阅读(263) 评论(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 无工时代 阅读(35) 评论(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 无工时代 阅读(39) 评论(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 无工时代 阅读(127) 评论(0) 推荐(0)
摘要: /* 并发加载函数 id:唯一值 syncFunc:加载函数 */ const _map={} const _startTimeMap={} async function conCurentLoad (id,syncFunc) { //兼容并发加载的情况 if(!_map[id]){ _map[id 阅读全文
posted @ 2021-09-24 11:18 无工时代 阅读(97) 评论(0) 推荐(0)
摘要: 推荐一个离线应用框架-lcache.js http://www.lcache.tech/ 阅读全文
posted @ 2021-09-09 10:33 无工时代 阅读(36) 评论(0) 推荐(0)
摘要: 痛点:在单页面应用中,一个路由文件包含了所有页面的配置。随着项目开发,页面越来越多,导致路由配置文件越来越大,而用户访问只需要很少的部分,造成了资源的浪费。 为解决这个问题,研究了路由拆分方案 思路:先分类后拆分 1、项目中有A、B、C等子项目或流程,对应A_xx页面、B_xx页面、C_xx页面, 阅读全文
posted @ 2021-08-04 16:20 无工时代 阅读(163) 评论(0) 推荐(0)
摘要: /** * iOS键盘收起页面未下移bug */(/iphone|ipod|ipad/i.test(navigator.appVersion))&&document.addEventListener('blur', (e) => { // 这里加了个类型判断,因为a等元素也会触发blur事件 ['i 阅读全文
posted @ 2021-07-22 14:41 无工时代 阅读(50) 评论(0) 推荐(0)
摘要: Array.prototype.pushOnly=function(one){ if(this.indexOf(one) 1){ this.push(one) } } /* * 分类器*/ class ArraySplit { constructor(getDis,sArr,maxDeep) { t 阅读全文
posted @ 2021-05-21 14:17 无工时代 阅读(44) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页