Unicode、码点、UTF-16 与字符串遍历边界 | JavaScript

本章覆盖:JavaScript string 基于 UTF-16 code units;Unicode code point;代理对 surrogate pair;codePointAt / fromCodePoint;for...of 按 Unicode code point 迭代的高层语义;字符串 length 不等于用户可见字符数量。

本章知识点

  • JavaScript string 基于 UTF-16 code units
  • Unicode code point
  • 代理对 surrogate pair
  • codePointAt / fromCodePoint
  • for...of 按 Unicode code point 迭代的高层语义
  • 字符串 length 不等于用户可见字符数量