摘要: function delay(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } const dateFormat = function (date, fmt) { if (!date) return '' date = n 阅读全文
posted @ 2025-05-09 16:45 无工时代 阅读(2) 评论(0) 推荐(0)
摘要: // 定义 bigRect 的尺寸 function range(min, max, step = 1) { const arr = []; for (let i = min; i <= max; i += step) { arr.push(i); } return arr; } const big 阅读全文
posted @ 2025-05-01 22:11 无工时代 阅读(3) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-12-25 11:34 无工时代 阅读(9) 评论(0) 推荐(0)
摘要: module.exports = { JSONToPathArr(data){ const resArr=[] const pArr=[''] const list=[data] for(let i=0;i<list.length;i++){ const json=list[i] for(let k 阅读全文
posted @ 2024-12-13 16:26 无工时代 阅读(8) 评论(0) 推荐(0)
摘要: const fs=require('fs') const path=require('path') const list=fs.readdirSync(__dirname) const objList=[] list.forEach(function (name){ if(name.indexOf( 阅读全文
posted @ 2024-11-21 14:47 无工时代 阅读(3) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2024-09-07 15:35 无工时代 阅读(1) 评论(0) 推荐(0)
摘要: 分为前端版本和服务器版本 /* 缓存并发接口函数,解决重复请求和并发请求问题 id:唯一值 cacheSecond:缓存时间,单位秒 syncFunc:加载函数 */ const _map = {} const _startTimeMap = {} const _idArr=[] const _re 阅读全文
posted @ 2024-08-27 00:12 无工时代 阅读(13) 评论(0) 推荐(0)
摘要: axiosNovel.msj import axios from 'axios'; import fs from 'fs-extra'; import path from 'path'; import * as cheerio from 'cheerio' const instance = axio 阅读全文
posted @ 2024-08-19 20:30 无工时代 阅读(10) 评论(0) 推荐(0)
摘要: 1、根据文字生成一张png图片,我是通过制作网页,然后截图 ocrConfig.js const str="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ一丁七万丈三上下不与丐丑专且世丘丙业丛东丝丢两严丧个中丰串临丸丹为主 阅读全文
posted @ 2024-08-18 16:15 无工时代 阅读(48) 评论(0) 推荐(0)
摘要: '玻璃FG503:连续14天、30天内有22天,在10均线↓方', '玻璃FG505:连续14天、30天内有22天,在10均线↓方', '玻璃FG506:连续14天、30天内有21天,在10均线↓方', '玻璃FG411:连续7天、30天内有25天,在10均线↓方', '玻璃FG410:连续5天、3 阅读全文
posted @ 2024-08-10 19:35 无工时代 阅读(30) 评论(0) 推荐(0)