源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

通过脚本清空标签p中的class名和style <font color="red">原创</font>

  • 时间:2022-07-06 19:09 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:通过脚本清空标签p中的class名和style <font color="red">原创</font>
[u]复制代码[/u] 代码如下:
<textarea name=jb51 cols=60 rows=6>   <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 0.05pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0; mso-char-indent-size: 10.5pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文本文本文本。</SPAN></p>  </textarea><button onclick=alert(ubb(jb51.value))>alert</button>   <script>   function ubb(str)   {  var strout;     var re=/<p[\s\S]*?><span[\s\S]*?>(.*?)<\/span><\/p>/gi;      strout=str.replace(re,"<p>$1</p>"); return strout; }   </script>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部