js截取的问题 js 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 去掉所有html标签? var s = '<img src="http://localhost:8080/xcty/pages/wwz/plugins/emoticons/33.gif" alt="" border="0" height="24" width="24" />啊时代发生地方撒地方<img src="http://localhost:8080/xcty/pages/wwz/plugins/emoticons/53.gif" alt="" border="0" height="24" width="24" />啊时代发生地方撒地方<img src="http://localhost:8080/xcty/pages/wwz/plugins/emoticons/53.gif" alt="" border="0" height="24" width="24" /><br />'; s = s.replace(/<[^>]+>/g, ''); alert(s); var s = '<img src="http://localhost:8080/xcty/pages/wwz/plugins/emoticons/33.gif" alt="" border="0" height="24" width="24" />啊时代发生地方撒地方<img src="http://localhost:8080/xcty/pages/wwz/plugins/emoticons/53.gif" alt="" border="0" height="24" width="24" />啊时代发生地方撒地方<img src="http://localhost:8080/xcty/pages/wwz/plugins/emoticons/53.gif" alt="" border="0" height="24" width="24" /><br />'; s = s.replace(/[^\u4e00-\u9fa5]+/g, ''); alert(s); 求一匹配空值或11位数字的正则! 请问这段javascript 代码是经过加密吗?该怎么分析它? 左右移动图片效果 JQ 拖拽图片排序怎么更新数据库? js属性与变量问题 如何使用JavaScript控制图片的亮度,对比度 等功能 【闭包问题】 数组push 好像IE5.5 以下版本不支持,有什么可以代替的吗? table中的某个单元格中有一个button,当点击该button时,怎样得到它所在的单元格是在table的第几行中? 求助!如何为超连结的焦点换色编程? nodejs+express+mongodb存储json问题 求匹配括号的正则表达式
s = s.replace(/<[^>]+>/g, '');
alert(s);
s = s.replace(/[^\u4e00-\u9fa5]+/g, '');
alert(s);