抱歉,标题真的很奇怪,但这是我想做的:varf1=function(param1,param2){//Isthereawaytogetanobjectthatis‘f1’//(thecurrentfunction)?};如您所见,我想从匿名函数中访问当前函数。这可能吗? 最佳答案 给它命名。varf1=functionfOne(){console.log(fOne);//fOneisreferencetothisfunction}console.log(fOne);//undefined-thisisgood,fOnedoesnot