const str = "<a href='/Mail/Sending' class='active subdrop'><i class='fa fa-fw fa-send-o'></i> 发送中邮件</a>";
var arry=str.match(/[\u4e00-\u9fa5]+/g);
//['发送中邮件']
js 匹配中文,获取一段html中剔除html标签的中文字符
猜你喜欢
转载自blog.csdn.net/vaecnfeilong/article/details/124935246
今日推荐
周排行