1. String.fromCodePoint()

  2. String.raw()

  3. 实例方法:codePointAt()

  4. 实例方法:normalize()

  5. 实例方法:includes(), startsWith(), endsWith()

  6. 实例方法:repeat()

  7. 实例方法:padStart(),padEnd()

  8. 实例方法:trimStart(),trimEnd()

  9. 实例方法:matchAll()

1.String.fromCodePoint()

可以识别大于0xFFFF的字符,弥补了String.fromCharCode()方法的不足。在作用上,正好与下面的codePointAt()方法相反。

String.fromCodePoint(0x20BB7)// "
01-21 22:43
查看更多