Appearance
缺点
通过 if 来判断
function Fn(name, age, job) { this.name = name; this.age = age; this.job = job; if (typeof this.sayName !== 'function') { Fn.prototype.sayName = function () { return this.name; }; } }