js 正则匹配(去掉html标签)时间:2022-06-24 23:29:42正则匹配去掉所有html标签 var a = "<span>999</span>" a = a.replace(/<[^>]+>/g,' ') console.log(a)