?
This document uses PHP Chinese website manual Release
JScript? | 語言參考 |
從一些 Unicode 字符值中返回一個字符串。
String.fromCharCode([code1[, code2[, ...[, codeN]]]])
String
必選項。為 String 對象。
code1, . . . , codeN
可選項。是要轉換為字符串的 Unicode 字符值序列。如果沒有給出參數(shù),結果為空字符串。
在調用 fromCharCode 前不必創(chuàng)建 String 對象。
在下面的例子中,test 包含字符串 "plain":
var test = String.fromCharCode(112, 108, 97, 105, 110);
版本 3
charCodeAt 方法 | String 對象的方法
應用于: String 對象