javascript对象入门实例教程_js面向对象:1:构造函数法 function Dog(name,weight) { this._name=name; this._weight=weight; this._show=function() { document.write(dog._name+ is +dog._sex); } } var dog=new Dog(Join,100); d
导读javascript对象入门实例教程_js面向对象:1:构造函数法 function Dog(name,weight) { this._name=name; this._weight=weight; this._show=function() { document.write(dog._name+ is +dog._sex); } } var dog=new Dog(Join,100); d
javascript对象入门实例教程_js面向对象:1:构造函数法 function Dog(name,weight) { this._name=name; this._weight=weight; this._show=function() { document.write(dog._name+ is +dog._sex); } } var dog=new Dog(Join,100); d