fromCodePoint( )
返回对应码点字符
用法
String.fromCharCode(0x20BB7)
raw( )
返回被转义的字符串
用法
String.raw`Hi\n${2+3}!`
实际返回 "Hi\\n5!",显示的是转义后的结果 "Hi\n5!"
codePointAt( )
处理4个字节的字符,返回一个字符的码点
用法
let s = '𠮷a' s.codePointAt(0) // 134071
includes( ),startsWith( ),endsWith( )
startsWith
表示参数字符串是否在原字符串的头部
endsWith
表示参数字符串是否在原字符串的尾部