摘要: function Person(){ } var firend=new Person(); Person.prototype.sayHi=function(){ alert("hi"); } firend.sayHi(); // hi // 没有重写原型!!!! //虽然sayHi()方法是在fir 阅读全文
posted @ 2016-09-01 15:36 指间细碎流年 阅读(98) 评论(0) 推荐(0) 编辑