html我想替换一个子节点,从children中拿到子节点,然后$(astNode).replaceBy('\<div\>xxx\</div\>')报错 oldAst.replace is not a function 用find返回的ast,使用replaceBy就没问题
html我想替换一个子节点,从children中拿到子节点,然后$(astNode).replaceBy('<div>xxx</div>')报错
oldAst.replace is not a function
用find返回的ast,使用replaceBy就没问题