<!DOCTYPE html>
<html>
<body>
<p>charCodeAt() 方法返回字符串中给定位置的字符的 unicode:</p>
<p id="demo"></p>
<script>
var str = "HELLO WORLD";
document.getElementById("demo").innerHTML = str.charCodeAt(0);
</script>
</body>
</html>
你的E-mail:
网页地址:
描述: