substring相关
<!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.substring(6)+"<br/>")
document.write(mystr.substring(0,mystr.indexOf(" ")))
// var mystr="Hello World!"
// document.write( + "<br />");
// document.write( );
</script>
</head>
<body>
</body>
</html>
上面第8行处6改为5不应该有一个空格输出吗?怎么没有呢?