javascript截取带有emoji表情的字符串
2020/08/08标签: javascript    emoji字符串截取   
String.prototype.substrEmoji = function () { var start = arguments[0] + (this.codePointAt(arguments[0] - 1) > 0xffff ? 1 : 0); var length = a...
1