Closed mystylemylife closed 6 months ago
demo:
const a=`${a}11${b}`
如何实现下面代码
const a=$fn(`${a}11${b}`)
const res = $('const a=${a}11${b}') .find({ type: 'TemplateLiteral'}) .each(item => { const matcher = item.generate() item.replaceBy($fn(${matcher})) }) .root() .generate()
${a}11${b}
$fn(${matcher})
demo:
如何实现下面代码