<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>创建数组</title>
<script type="text/JavaScript">
vrr myarr = new Array(8);
document.write("数组的第一个值:"+myarr[0]);
</script>
</head>
<body>
</body>
</html>
是 var myarr = new Array(8);而不是 vrr myarr = new Array(8);
拼错了兄弟
是var而不是vrr
var
var myarr = new Array(8);