document.write(person.lastname + "<br>"); document.write(person["lastname"] + "<br>");它们的区别
<script>
var person=
{
firstname : "Sherlock",
lastname : "Holmes",
id : 5566
};
document.write(person.lastname + "<br>");
document.write(person["lastname"] + "<br>");
</script>