var tmp = arguments.callee.toString();
var re = /function\s*(\w*)/i;
var matches = re.exec(tmp);//方法名
var id=matches[1];
alert(id);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2021-10-02
猜你喜欢
  • 2021-10-24
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-06-04
相关资源
相似解决方案