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