String.fromCodePoint

String.fromCodePoint() 静态方法返回使用指定的代码点序列创建的字符串。

语法

语法:

String.fromCodePoint(num1[, ...[, numN]])

类型声明:

interface String {
  fromCodePoint(...codePoints: number[]): string;
}

参数说明:

参数 说明 类型
num1, ..., numN Unicode 编码位置 number

参考资料