收集整理 时间是: 02/06/06 下午 01:17:41.
文件名称: jsmthfromCharCode.htm
页面标题: fromCharCode 方法  •  文件大小: 1927  •  最后更新: Mon, 06 Feb 2006 02:23:47 GMT

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);

要求

版本 3

请参阅

charCodeAt 方法 | String 对象的方法

应用于: String 对象