| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/zh/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode | [Back] [Original] |
Get to know MDN better
String.fromCharCode() UTF-16
console.log(String.fromCharCode(189, 43, 190, 61));
// Expected output: "+="
String.fromCharCode(num1)
String.fromCharCode(num1, num2)
String.fromCharCode(num1, num2, /* , */ numN)
numN 0 655350xFFFF UTF-16 0xFFFF 16
N N UTF-16
fromCharCode() String String.fromCharCode() String
Unicode 0 11141110x10FFFFcharCodeAt() 65536 16 65535 Unicode UTF-16 Unicode
fromCharCode() 16 \u String.fromCharCode(0xd83c, 0xdf03) "\ud83c\udf03" U+1F303 "Night with Stars" 0x1f303 0xd83c 0xdf03 String.fromCodePoint() String.fromCodePoint(0x1f303) U+1F303 "Night with Stars"
UTF-16 BMP
String.fromCharCode(65, 66, 67); // "ABC"
String.fromCharCode(0x2014); // ""
String.fromCharCode(0x12014); // "" 1
String.fromCharCode(8212); // ""8212 0x2014
UTF-16
String.fromCharCode(0xd83c, 0xdf03); // U+1F303 "Night with
String.fromCharCode(55356, 57091); // Stars" == "\uD83C\uDF03"
String.fromCharCode(0xd834, 0xdf06, 0x61, 0xd834, 0xdf07); // "\uD834\uDF06a\uD834\uDF07"
| ECMAScript 2027 LanguageSpecification # sec-string.fromcharcode |
StringString.prototype.anchor()String.prototype.at()String.prototype.big()String.prototype.blink()String.prototype.bold()String.prototype.charAt()String.prototype.charCodeAt()String.prototype.codePointAt()String.prototype.concat()String.prototype.endsWith()String.prototype.fixed()String.prototype.fontcolor()String.prototype.fontsize()String.prototype.includes()String.prototype.indexOf()String.prototype.isWellFormed()String.prototype.italics()String.prototype.lastIndexOf()String.prototype.link()String.prototype.localeCompare()String.prototype.match()String.prototype.matchAll()String.prototype.normalize()String.prototype.padEnd()String.prototype.padStart()String.prototype.repeat()String.prototype.replace()String.prototype.replaceAll()String.prototype.search()String.prototype.slice()String.prototype.small()String.prototype.split()String.prototype.startsWith()String.prototype.strike()String.prototype.sub()String.prototype.substr()String.prototype.substring()String.prototype.sup()String.prototype.toLocaleLowerCase()String.prototype.toLocaleUpperCase()String.prototype.toLowerCase()String.prototype.toString()String.prototype.toUpperCase()String.prototype.toWellFormed()String.prototype.trim()String.prototype.trimEnd()String.prototype.trimStart()String.prototype.valueOf()String.prototype[Symbol.iterator]()Object/FunctionObject.prototype.__defineGetter__()Object.prototype.__defineSetter__()Object.prototype.__lookupGetter__()Object.prototype.__lookupSetter__()Object.prototype.hasOwnProperty()Object.prototype.isPrototypeOf()Object.prototype.propertyIsEnumerable()Object.prototype.toLocaleString()Object.prototype.toString()Object.prototype.valueOf()| Web Proxy Viewer | New URL | Original Page |