<html>
<body>
<h2>JavaScript 对象</h2>
<p id="demo"></p>
<script>
// 创建一个对象:
var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};
// 显示来自对象的一些数据:
document.getElementById("demo").innerHTML =
person.firstName + " is " + person.age + " years old.";
</script>
</body>
</html>