<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>string对象 </title>
<script type="text/javascript">
var mystr="I love JavaScript!"
document.write( mystr.charAt(mystr.length-1));
</script>
</head>
<body>
</body>
</html>
没毛病啊
是不是英文环境输入,代码看起来没错
代码看着没问题