上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页
摘要: //1 导入内置fs模块 const fs = require('fs') //2 导入path模块 const path = require('path') //3 导入http模块 const http = require('http') //4 创建web服务器 const server = 阅读全文
posted @ 2022-10-22 16:36 文采呱呱 阅读(16) 评论(0) 推荐(0) 编辑
摘要: //http: // 1,导入http模块 const http = require('http') // 2,创建web实例 const server = http.createServer() // 3,为服务器绑定require事件 server.on('request',function(r 阅读全文
posted @ 2022-10-22 00:34 文采呱呱 阅读(15) 评论(0) 推荐(0) 编辑
摘要: // 导入 const fs = require('fs') const path = require('path') // 匹配正则表达式 // 样式 const regStyle = /<style>[\s\S]*<\/style>/ // js const regScript = /<scri 阅读全文
posted @ 2022-10-19 01:08 文采呱呱 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1,拼接路径 const fs = require('fs') const path = require('path') fs.readFile(path.join(__dirname,'path'),'utf8',function(err,dataStr){ if(err){ return con 阅读全文
posted @ 2022-10-19 00:11 文采呱呱 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1导入fs模块 const fs = require('fs') 2,读取文件内容 fs.readFlie(path,'utf8',function(err,dataStr){ console.log(err) console.log(' ') console.log(dataStr) }) 注:p 阅读全文
posted @ 2022-10-18 23:49 文采呱呱 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1、在小程序根目录下执行命令:npm init2、在继续安装你要安装的第三方包:npm i vant-weapp -S --production3、开发工具:工具 -> 构建 npm4、详情里面:选中使用 npm 模块 阅读全文
posted @ 2022-07-12 18:12 文采呱呱 阅读(382) 评论(0) 推荐(0) 编辑
摘要: document.addEventListener("visibilitychange", function(){ document.title = document.hidden ? "无聊" : "还是无聊"; }); 阅读全文
posted @ 2022-05-07 18:09 文采呱呱 阅读(18) 评论(0) 推荐(0) 编辑
摘要: img { -webkit-filter: grayscale(100%); /* Chrome, Safari, Opera */ filter: grayscale(100%); } 阅读全文
posted @ 2022-03-08 17:03 文采呱呱 阅读(32) 评论(0) 推荐(0) 编辑
摘要: yarn start error Command failed with exit code 1 解决方法 1.删除yarn.lock2.yarn init3.yarn install4.yarn start/yarn serve 阅读全文
posted @ 2022-03-01 09:50 文采呱呱 阅读(6908) 评论(0) 推荐(1) 编辑
摘要: git fetch --allgit reset --hard origin/mastergit pull 第一个是:拉取所有更新,不同步; 第二个是:本地代码同步线上最新版本(会覆盖本地所有与远程仓库上同名的文件); 第三个是:再更新一次(其实也可以不用,第二步命令做过了其实) git强制覆盖本地 阅读全文
posted @ 2022-02-28 11:52 文采呱呱 阅读(1600) 评论(1) 推荐(1) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页