代码
function showMethodName(thisObj:Object, method:Function):String
{
    var xml:XML 
= describeType(thisObj);
    var xmlList:XMLList 
= xml.method.@name;
    
for each(var j:String in xmlList)
    {
        
if(method == thisObj[j])
            retrun j;
    }
    
return null;
}

function hhh()
{
    trace(showMethodName(
this,arguments.callee))
    
//hhh
}

 

相关文章:

  • 2021-05-16
  • 2021-07-13
  • 2021-08-30
  • 2022-02-07
  • 2022-02-23
  • 2021-12-29
猜你喜欢
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-08-01
  • 2021-07-06
相关资源
相似解决方案