js 求一个只删除所有font 标签的正则函数
<script> var a = "<font color='#555fff'>33asfdasdf</font>22asdfasdf"; var b = a.replace(/<\/?font[^>]*>/gi,""); alert(b); </script>
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
时间: 2024-10-10 14:51:00
js 求一个只删除所有font 标签的正则函数
<script> var a = "<font color='#555fff'>33asfdasdf</font>22asdfasdf"; var b = a.replace(/<\/?font[^>]*>/gi,""); alert(b); </script>
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]