vue去掉字符串中的标签元素 (正则) by: chenPosted on: 2022年5月18日2022年5月24日 // 去掉html字符串中的所有标签元素 export function delHtmlTag (str) { return str.replace(/<[^>]+>/g, ”) }