Heim  >  Fragen und Antworten  >  Hauptteil

Javascript – JS-Filter-Emoticons des WeChat-Spitznamens

WeChat-Spitzname:

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

Jetzt stoße ich auf ein Emoticon, das nicht erkannt werden kann, und ich möchte es in „Mund“ filtern. Kann mir jemand beibringen, wie man dieses JS und den regulären Ausdruck schreibt?

曾经蜡笔没有小新曾经蜡笔没有小新2712 Tage vor1299

Antworte allen(3)Ich werde antworten

  • 天蓬老师

    天蓬老师2017-05-18 10:53:12

    JS如何查找出UTF-8编码的表情符

    Antwort
    0
  • 迷茫

    迷茫2017-05-18 10:53:12

    我先说一下我的解决方法:

    // 示例名称:
    var str = "阿bc

    Antwort
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-18 10:53:12

    加粗文字 求救啊 大神们 有没有做过的

    Antwort
    0
  • StornierenAntwort