METHOD: String::fromCharCode --------------------------------------------------------------------------------
String.fromCharCode(num1,..........,numN)This method takes the specified Unicode values and returns a string (but not a String object). Note that this method is a static method of String. Therefore, it is not used as a method of a String object that you have created. The syntax is always String.fromCharCode() as opposed to myStringObject.fromCharCode().The following code takes the specified Unicode values and writes the resulting string to the document.Code:
document.write (String.fromCharCode(67,65,66))Output:
CAB
String.fromCharCode(num1,..........,numN)This method takes the specified Unicode values and returns a string (but not a String object). Note that this method is a static method of String. Therefore, it is not used as a method of a String object that you have created. The syntax is always String.fromCharCode() as opposed to myStringObject.fromCharCode().The following code takes the specified Unicode values and writes the resulting string to the document.Code:
document.write (String.fromCharCode(67,65,66))Output:
CAB
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货