3 - 6 编程练习
来源:3-6 编程练习
目訫
2018-09-11 14:42:28
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>charCodeAt()</title>
</head>
<body>
<script>
var str="Work hard, earn money."
var strKey=str.charCodeAt(str.indexOf("a"));//补充代码
document.write(strKey);//补充代码
</script>
</body>
</html>1回答
测试了你的代码,效果可以实现
继续加油!