var str="<p>js去除字符串中的标签</p>"; var result=str.replace(/<.*?>/ig,""); console.log(result);
原文地址:https://www.cnblogs.com/Mrrabbit/p/8455139.html
时间: 2024-10-11 12:18:24
var str="<p>js去除字符串中的标签</p>"; var result=str.replace(/<.*?>/ig,""); console.log(result);
原文地址:https://www.cnblogs.com/Mrrabbit/p/8455139.html