javascript - js filtering emoticons of WeChat nicknames
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-18 10:51:12
0
3
1320

WeChat nickname:

1.最多显示8位中文字符/16位英文字符,超出部分用“...”代替,
2.对于无法识别的表情等特殊字符,用“口”代替

Now I encounter an emoticon that cannot be recognized, and I want to filter it into "mouth"; is there anyone who can teach me how to write this js and regular expression

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(3)
Peter_Zhu

How to find UTF-8 encoded emoticons in JS

迷茫

Let me tell you my solution first:

// Example name:
var str = "Abc
淡淡烟草味

Bold text Please help. Have you done this?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!