06 2021 档案

摘要:https://gitee.com/eric167/pc-rem-demo 阅读全文
posted @ 2021-06-24 10:23 13522679763-任国强 阅读(111) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-06-24 09:19 13522679763-任国强 阅读(53) 评论(0) 推荐(0)
摘要:<template> <el-upload class="upload-signle" :action="uoloadAction" :on-remove="handleRemove" :on-success="handleSuccess" :on-exceed="handleExceed" :fi 阅读全文
posted @ 2021-06-17 14:29 13522679763-任国强 阅读(138) 评论(0) 推荐(0)
摘要:2020最新最全Node实战课程(含爬虫和web服务器开发) https://www.bilibili.com/video/BV1i7411G7kW?p=15 https://space.bilibili.com/306107070/channel/detail?cid=79090&ctype=0 阅读全文
posted @ 2021-06-16 14:00 13522679763-任国强 阅读(131) 评论(0) 推荐(0)
摘要:puppeteer 总结 const puppeteer = require('puppeteer');// 查找 谷歌浏览器位置const findChrome = require('carlo/lib/find_chrome'); // 获取谷歌浏览器位置 const chromePath = 阅读全文
posted @ 2021-06-16 13:56 13522679763-任国强 阅读(145) 评论(0) 推荐(0)
摘要://延时函数 function sleep(delay) { return new Promise((resolve, reject) => { setTimeout(() => { try { resolve(1) } catch (e) { reject(0) } }, delay) }) } 阅读全文
posted @ 2021-06-16 09:17 13522679763-任国强 阅读(73) 评论(0) 推荐(0)
摘要:const axios = require("axios"); const fs = require('fs'); async function getPage(num){ let httpUrl = 'http://www.app-echo.com/api/recommend/sound-day? 阅读全文
posted @ 2021-06-15 18:10 13522679763-任国强 阅读(50) 评论(0) 推荐(0)
摘要:const cheerio = require('cheerio'); const axios = require('axios') const fs = require('fs') const path = require('path') let httpUrL = 'https://www.do 阅读全文
posted @ 2021-06-15 18:08 13522679763-任国强 阅读(80) 评论(0) 推荐(0)
摘要:// js 睡眠函数 sleep(3) number 间隔秒数 function sleep(number){ var now = new Date(); var exitTime = now.getTime() + number * 1000; while (true) { now = new D 阅读全文
posted @ 2021-06-15 15:27 13522679763-任国强 阅读(3246) 评论(0) 推荐(0)
摘要:老陈打码 json 开始看第10课 json { "name": "laochen", "version": "1.0.0", "description": "", "main": "index.js", "dependencies": { "axios": "^0.21.1", "jquery": 阅读全文
posted @ 2021-06-14 22:42 13522679763-任国强 阅读(69) 评论(0) 推荐(0)
摘要:let fs = require('fs'); // 创建读取流 fs.createReadStream(路径【配置项】) // let rs = fs.createReadStream('hello.txt',{flag:"r",encoding:"utf-8"}); let rs = fs.cr 阅读全文
posted @ 2021-06-14 19:30 13522679763-任国强 阅读(177) 评论(0) 推荐(0)
摘要:let fs = require('fs'); // 1 创建写入流 // fs.createWriteStream(文件路径,[可选择的配置操作]) // 2 let ws = fs.createWriteStream("hello.txt",{flag:'w',encoding:"utf8"}) 阅读全文
posted @ 2021-06-14 18:28 13522679763-任国强 阅读(120) 评论(0) 推荐(0)
摘要:let fs = require('fs') // 封装 异步读取文件 function fsRead(path){ return new Promise(function(resolve,reject){ fs.readFile(path,{flag:"r",encoding:"utf-8"},f 阅读全文
posted @ 2021-06-14 17:22 13522679763-任国强 阅读(718) 评论(0) 推荐(0)
摘要:let fs = require('fs') // 异步 写入文件 // write w 写入 // read r 读取 // append a 追加 // fs.writeFile('test.txt',"鱼香茄子\n",{flag:"a",encoding:"utf-8"},function(e 阅读全文
posted @ 2021-06-14 17:02 13522679763-任国强 阅读(506) 评论(0) 推荐(0)
摘要:var fs = require('fs'); // 同步 读取文件内容 // var conent = fs.readFileSync('hello.txt',{flag:'r',encoding:'utf-8'}) // console.log(123); // console.log(cone 阅读全文
posted @ 2021-06-14 17:00 13522679763-任国强 阅读(384) 评论(0) 推荐(0)
摘要:var touchstartX; function handleTouchstart(e){ // 数据绑定 记录触摸开始 x 轴的位置 touchstartX = e.changedTouches[0].clientX } function handleTouchend(e,ownerInstan 阅读全文
posted @ 2021-06-07 10:56 13522679763-任国强 阅读(116) 评论(0) 推荐(0)
摘要:https://gitee.com/eric167/vuex1 阅读全文
posted @ 2021-06-02 14:05 13522679763-任国强 阅读(34) 评论(0) 推荐(0)
摘要:https://gitee.com/eric167/vue 阅读全文
posted @ 2021-06-02 10:20 13522679763-任国强 阅读(22) 评论(0) 推荐(0)