上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 27 下一页
摘要: 1、下载安装nodejs, 2、npm安装模块 puppeteer-core, 3、然后运行当前js,参考demo输入url,就会下载所有的css、js、html等 下载nodejs,npm安装模块 puppeteer-core,然后运行当前js,参考demo输入url,就会下载所有的css、js、 阅读全文
posted @ 2019-07-25 16:07 无工时代 阅读(880) 评论(0) 推荐(0) 编辑
摘要: const puppeteer = require('puppeteer-core');const fs = require('fs');const path = require('path');const mkdir=require('./utils/mkdir');const Step=requ 阅读全文
posted @ 2019-07-18 19:26 无工时代 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: const tinify = require("tinify"); tinify.key = "本人的appkey"; const fs=require('fs'); const glob=require('glob'); const mkdir=require('./utils/mkdir'); const srcDir='./src/'; //被搜索的资源 let sourceFile... 阅读全文
posted @ 2019-07-17 19:08 无工时代 阅读(654) 评论(0) 推荐(0) 编辑
摘要: /** code 转tokens* *///判断字符function isEqual(test,code,pos,end) { if(pos<end&&code.charCodeAt(pos-1)!==92&&test code.substr(pos,test.length)){ return tr 阅读全文
posted @ 2019-07-09 19:11 无工时代 阅读(360) 评论(0) 推荐(0) 编辑
摘要: //js语法树节点类型-babel-eslint9const typeMap= { 'File':function (node) { return [node.program]; }, 'Program':function (node) { return [node.body] }, 'Block' 阅读全文
posted @ 2019-07-07 15:56 无工时代 阅读(870) 评论(0) 推荐(0) 编辑
摘要: //js语法树节点类型-babylon@6.18const typeMap= { 'CommentBlock':function (node) {}, 'CommentLine':function (node) {}, 'Literal':function (node) {}, 'Expressio 阅读全文
posted @ 2019-07-06 19:04 无工时代 阅读(829) 评论(0) 推荐(0) 编辑
摘要: const fs = require("fs")const PNG = require('pngjs').PNG;function getPixelsSync(filename){ return new Promise(function (resolve,reject) { fs.createReadStream(filename) .pipe(new ... 阅读全文
posted @ 2019-07-02 11:25 无工时代 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 颜色分类,之后补充图片成矩形,找出左上角点,之后找出{ r: 212, c: 41, w: 78, h: 80 };r为行y,c为列x,w为宽度,h为高度; 输出:0为背景,1表示文字部分,2为杂色 文字:我 阅读全文
posted @ 2019-06-27 17:55 无工时代 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 逻辑原理: 1、找出图片种最多的一种颜色,将它的相似颜色和它分类成0; 2、找出剩下的颜色种的最多一种颜色,将它的相似颜色和它分类成1; 3、找出剩下的颜色种的最多一种颜色,将它的相似颜色和它分类成2; 如果类别限制为maxTagNum,将剩下的颜色都分类成maxTagNum 阅读全文
posted @ 2019-06-27 15:20 无工时代 阅读(419) 评论(0) 推荐(0) 编辑
摘要: Matrix,Fraction,Point,Line 阅读全文
posted @ 2019-06-27 14:11 无工时代 阅读(448) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 27 下一页