摘要: // 导入 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) 编辑