(function() { function A() { this.c = ;c; } A.prototype.a = ;a;; A.prototype.d = ;d;; var o = new A(); o.b = ;b;; for (var k in o) { if (o.hasOwnProperty(k)) { console.log(;自己就有的私有属性; + k + ;,值为; + o[k]); } } console.log(;继承来的a,值为; + o.a); console.log(;继承来的d,值为; + o.d); })()