<script type="text/javascript"> var str="Hello world!" document.write(str.charAt(1)) </script>获取某位字符串的字符(0-length-1)