日期:2014-05-16 浏览次数:20418 次
Person={a:1,method:function(){return 123}} Author=clone(Person) function clone(object){ function F(){} F.prototype=object; return new F } Person.a=2 alert(Author.a)