范围错误:参数不是有效的代码点
当 NaN 值、负整数 (-1)、非整数 (5.4) 或大于 0x10FFFF (1114111) 的值与 String.fromCodePoint() 一起使用时,会发生 JavaScript 异常 "无效代码点"。
  ¥The JavaScript exception "Invalid code point" occurs when NaN values,
  negative Integers (-1), non-Integers (5.4), or values larger than 0x10FFFF (1114111) are
  used with String.fromCodePoint().
信息
错误类型
什么地方出了错?
¥What went wrong?
当传递 NaN 值、负整数 (-1)、非整数 (5.4) 或大于 0x10FFFF (1114111) 的值时,String.fromCodePoint() 会引发此错误。
  ¥String.fromCodePoint() throws this error when passed NaN
  values, negative Integers (-1), non-Integers (5.4), or values larger than 0x10FFFF
  (1114111).
代码点 是 Unicode 代码空间中的一个值;即从 0 到 0x10FFFF 的整数范围。
  ¥A code point is a value in the
  Unicode codespace; that is, the range of integers from 0 to
  0x10FFFF.
示例
无效案例
有效案例
也可以看看
¥See also