其他地方说定义数组最好不要用new来创建,因为那样会使得new 关键词只会使代码复杂化。它还会产生某些不可预期的结果:
<!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">
var myarr=[93,60,69,21,584,15587,887,78]
document.write("数组的第一个值:"+myarr[7]);
</script>
</head>
<body>
</body>
</html>