2011年4月12日

摘要: function person(name){this.name=name;}person.prototype.sayHello=function(){alert("hello,my name is "+this.name);};var mark=new person("mark");mark.sayHello();// hello,my name is markfunction game(name,game){ person.call(this,name); this.game=game;}[!--var mark=new game("mark 阅读全文
posted @ 2011-04-12 22:36 梵唱狂歌 阅读(133) 评论(0) 推荐(0)

导航