代码示例:(标识:jsck_fromcharcode_1)
<!DOCTYPE html>
<html>
<body>

<h1>JavaScript 字符串</h1>

<h2>String.fromCharCode() 方法</h2>

<p>String.fromCharCode() 方法将 Unicode 值转换为字符。</p>

<p>将 65 转换为字符串:</p>

<p id="demo"></p>

<script>
let text = String.fromCharCode(65);
document.getElementById("demo").innerHTML = text; 
</script>

</body>
</html>
运行结果: