我正在尝试在对象之间创建某种继承:varfoo=(function(){functiondoFooStuff(){console.log(arguments.callee.name);}return{doFooStuff:doFooStuff}})();varbar=(function(){$.extend(this,foo);functiondoBarStuff(){console.log(arguments.callee.name);doFooStuff();}return{doBarStuff:doBarStuff,}})();bar.doBarStuff();bar.doFoo