代码编辑器:
x
1
<p id="demo">单击按钮显示指定UNICODE编码的字符</p>
2
<button onclick="myFunction()">点我</button>
3
<script>
4
function myFunction(){
5
var n=String.fromCharCode(72,69,76,76,79);
6
document.getElementById("demo").innerHTML=n;
7
}
8
</script>
9