摘要:
var fs = require('fs'); var path = require('path'); var filePath = path.resolve(process.cwd(), 'src/pages/Crm'); //调用文件遍历方法 fileDisplay(filePath); /** 阅读全文
摘要:
const msgContent = str.replace(/{{([^}]+)}}/g, function(full, part) { console.log(full, part); return `<span class='color'>${part}</span>`; }); 上述代码可用 阅读全文