JavaScript继承总结1.创建对象1.字面量对象2.构造函数3.Object.create<pre<code//1.字面量varobj{name:&39;字面量&39;,show:function(){console.log(this.name)