一路繁花似锦绣前程
失败的越多,成功才越有价值

导航

 

2024年7月13日

摘要: 目录文件根据名称整理至不同文件夹 文件根据名称整理至不同文件夹 @echo off setlocal EnableDelayedExpansion set "currentDir=%cd%" for %%a in (*.mp4) do ( if not exist "%currentDir%\%%~ 阅读全文
posted @ 2024-07-13 16:41 一路繁花似锦绣前程 阅读(2) 评论(0) 推荐(0) 编辑
 

2024年6月4日

摘要: 目录一、浏览器缓存机制1、LastModified2、ETag3、expires 一、浏览器缓存机制 1、LastModified const http = require('http') const url = require('url') const path = require('path') 阅读全文
posted @ 2024-06-04 17:32 一路繁花似锦绣前程 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: 目录一、静态资源服务器命令行工具 一、静态资源服务器命令行工具 #!/usr/bin/env node // npm i yargs const yargs = require('yargs') const Server = require('../src/app') const argv = ya 阅读全文
posted @ 2024-06-04 10:49 一路繁花似锦绣前程 阅读(6) 评论(0) 推荐(0) 编辑
 

2024年5月21日

摘要: 目录十六、知识点补充22、gzip23、crypto24、uncaughtException25、detached26、fork27、exec28、execFile 十六、知识点补充 22、gzip const fs = require('fs') const path = require('pat 阅读全文
posted @ 2024-05-21 17:39 一路繁花似锦绣前程 阅读(7) 评论(0) 推荐(0) 编辑
 

2024年3月27日

摘要: 目录二十七、知识点回顾1、回调函数方式处理异步所存在的问题2、生成器3、从Generator到async/await 二十七、知识点回顾 1、回调函数方式处理异步所存在的问题 * 无法捕获错误(try catch) * 不能return 2、生成器 function* foo(a) { const 阅读全文
posted @ 2024-03-27 19:38 一路繁花似锦绣前程 阅读(7) 评论(0) 推荐(0) 编辑
 

2024年3月18日

摘要: 目录十六、知识点补充1、环境变量2、pnpm包管理方式3、npm包管理方式(dependencies、devDependencies、peerDependencies)4、npm发布包5、内置模块-util模块6、Buffer7、base64编码算法8、path模块9、实现静态资源服务器10、exp 阅读全文
posted @ 2024-03-18 14:37 一路繁花似锦绣前程 阅读(27) 评论(0) 推荐(0) 编辑
 

2024年3月14日

摘要: 目录1、浏览器的同源策略2、jsonp3、cors4、postMessage5、window.name6、location.hash7、document.domain8、websocket9、nginx 1、浏览器的同源策略 * 两个URL的协议、主机、端口都相同的话,则这两个URL同源 * 浏览器 阅读全文
posted @ 2024-03-14 03:15 一路繁花似锦绣前程 阅读(8) 评论(0) 推荐(0) 编辑
 

2024年3月7日

摘要: 目录动手实现一个webpack的loader动手实现一个webpack的pluginchrome浏览器调试nodejs代码 动手实现一个webpack的loader // webpack.config.js module.exports = { module: { rules: [ { test: 阅读全文
posted @ 2024-03-07 14:20 一路繁花似锦绣前程 阅读(20) 评论(0) 推荐(0) 编辑
 

2024年3月5日

摘要: 目录简易版webpack的实现步骤1、npm的bin2、文件的读写3、webpack是如何做的4、模块遍历(图结构)5、模块脚本拼接6、loader转换 简易版webpack的实现步骤 1、npm的bin * npm init -y * package.json添加配置 ######## { "bi 阅读全文
posted @ 2024-03-05 23:27 一路繁花似锦绣前程 阅读(7) 评论(0) 推荐(0) 编辑
 

2024年1月26日

摘要: <template> <div style="background: red; padding: 20px"> <video ref="videoEl" src="/movie.mp4"></video> <hr /> <canvas ref="canvasEl"></canvas> <hr /> 阅读全文
posted @ 2024-01-26 13:12 一路繁花似锦绣前程 阅读(14) 评论(0) 推荐(0) 编辑