Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<html>
<head>
<title>取得字符串中指定位置的字符</title>
</head>
<body>
<script language="Javascript">
<!--
str = "JavaScript";
str1 = str.charAt(0);
str2 = str.charAt(4);
document.write("str=" + str + "<br>");
document.write("第1个字符是:" + str1 + "<br>");
document.write("第5个字符是:" + str2 + "<br>");
//-->
</script>
</body>
</html>
CSS代码...
JS代码...
xxxxxxxxxx