假设我得到一个匿名函数,需要对其上下文进行操作,但它是绑定(bind)到“窗口”还是绑定(bind)到未知对象是不同的。如何获取调用匿名函数的对象的引用?编辑,一些代码:varObjectFromOtherLibIAmNotSupposedToknowAbout={foo:function(){//dosomethingon"this"}}varfunctionbar(callback){//hereIwanttogetareferenceto//ObjectFromOtherLibIAmNotSupposedToknowAbout//ifObjectFromOtherLibIAmNo