摘要:
1、删除a标签与span标签str = str.replace(/(<\/?a.*?>)|(<\/?span.*?>)/g, '');2、过滤删除style属性str = str.replace(/style\s*?=\s*?(['"])[\s\S]*?\1/g, "$1");3、去除行尾空白str 阅读全文
摘要:
background: url("../../../assets/pre-registration/web/part10_title.png") background: url("~@/assets/pre-registration/web/part10_title.png") 在style里可以用 阅读全文