2012年3月19日
摘要: <script type="text/javascript"> function Animal(name){ this.name=name; } Animal.prototype.sayName=function(){ alert("My name is:"+this.name); } Animal.prototype.sayHi=function(){ alert("Hi! from animal:"+this.name); }function Tiger(name){ Animal.call(this, name);/ 阅读全文
posted @ 2012-03-19 14:32 maneater 阅读(178) 评论(0) 推荐(1) 编辑