//工厂可扩展模式 (function(){ function Pop(type) { console.log(this) } Pop.prototype.infoPop = function() { console.log('abc') } })()