不会的问题
1 <script type="text/javascript"> 2 var person = { 3 firstName: "Jhon", 4 lastName : "Doe", 5 id : 5566, 6 fullName : function() 7 { 8 return this.firstName + " " + this.lastName; 9 } 10 11 }; 12 document.getElementById("demo").innerHTML = person.fullName(); 13 </script>
<!-- 为什么不执行? -->