摘要: 1, 1 <script type="text/javascript"> 2 function A() 3 { 4 this.name='a'; 5 } 6 function B() 7 { 8 9 }10 11 12 B.prototype=new A();13 var obj=new B();14 15 alert(obj.name);16 </script>2, 1 <script type="text/javascript"> 2 function A() 3 { 4 this.name= 阅读全文
posted @ 2013-03-08 14:48 TL_LEE 阅读(1115) 评论(0) 推荐(0) 编辑