node 提取html中相同的内联style到class
const fs = require('fs');let txt = fs.readFileSync('./test.html','utf8');// console.log(txt);const reg=/style\s*?=\s*?(['"])[\s\S]*?\1/g;const regResult = txt.match(reg)const regSet = new Set(regResult)// console.log(regSet)let index = 0let resu