摘要: var fs = require('fs'); var path = require('path'); var filePath = path.resolve(process.cwd(), 'src/pages/Crm'); //调用文件遍历方法 fileDisplay(filePath); /** 阅读全文
posted @ 2021-01-30 21:23 木易锅巴 阅读(410) 评论(0) 推荐(0) 编辑
摘要: const msgContent = str.replace(/{{([^}]+)}}/g, function(full, part) { console.log(full, part); return `<span class='color'>${part}</span>`; }); 上述代码可用 阅读全文
posted @ 2021-01-30 21:21 木易锅巴 阅读(184) 评论(0) 推荐(0) 编辑