摘要: 1、删除a标签与span标签str = str.replace(/(<\/?a.*?>)|(<\/?span.*?>)/g, '');2、过滤删除style属性str = str.replace(/style\s*?=\s*?(['"])[\s\S]*?\1/g, "$1");3、去除行尾空白str 阅读全文
posted @ 2020-04-22 18:06 CatherLee 阅读(146) 评论(0) 推荐(0) 编辑
摘要: background: url("../../../assets/pre-registration/web/part10_title.png") background: url("~@/assets/pre-registration/web/part10_title.png") 在style里可以用 阅读全文
posted @ 2020-04-22 16:17 CatherLee 阅读(278) 评论(0) 推荐(0) 编辑