摘要: function Foo(name) { this.name = name; } Foo.prototype.myName = function () { return this.name; } var a = new Foo('a'); var b = new Foo('b'); a.myName 阅读全文
posted @ 2020-04-15 06:48 wzndkj 阅读(123) 评论(0) 推荐(0) 编辑