首页 相关文章 fromCharCode 方法

fromCharCode 方法

  从一些 Unicode 字符值中返回一个字符串。

  String.fromCharCode([code1[, code2[, ...[, codeN]]]])

参数

String

必选项。为 String 对象。

code1, . . . , codeN

  可选项。是要转换为字符串的 Unicode 字符值序列。假如没有给出参数,结果为空字符串。

说明

  在调用 fromCharCode 前不必创建 String 对象。

  在下面的例子中,test 包含字符串 "plain":

var test = String.fromCharCode(112, 108, 97, 105, 110);

...[ 查看全文 ]

2016-02-19 标签:

fromCharCode 方法的相关文章

手机页面
收藏网站 回到头部