function Test (x) { Test.prototype.before&&Test.prototype.before(x) console.log('construct&(11757)#39;) } Test.prototype.before = function (x) { console.log(x); }