javascrip关于继承的小例子_javascript技巧【点击查看详情】
javascrip关于继承的小例子_javascript技巧: 代码如下: //继承function Person(name,sex){ this.name=name; this.sex=sex;}Person.prototype.sayName=function(){ alert(this.name);}Person.prototype.saySex=function(){ alert(this.sex);}f
相关视频/文章