为什么这里“hello”可以提取,“world”就不能了。
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>string对象</title>
<script type="text/javascript">
var mystr="Hello World!"
document.write(mystr + "<br />");
document.write(mystr.substring("H",5) + "<br />");
document.write(mystr.substring("W") );
</script>
</head>
<body>
</body>
</html>