JavaScript
JavaScript 对象
替代语法(使用对象 literals)
源代码:
点击运行 »
<script> person = { firstname: "John", lastname: "Doe", age: 50, eyecolor: "blue" } document.write(person.firstname + " is " + person.age + " years old."); </script>
运行结果:
点击运行 »