<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数组类型</title>
</head>
<body>
<script>
//创建一个数组
var person={
//数组的属性和值
firstnaem: "Bill",
lastname: "Gates",
id :5566
};
//输出
document.write(person.lastname+"<br/>");
document.write(person["id"]+"<br/>");
</script>
</body>
</html>