JavaScript substring without splitting emoji

2019-07-20 18:26发布

问题:

in my js I am trying to substring() text which generally works but unfortunately decapitates emojis.

usaText = "A