JS获取自身函数名称
摘要:<html><head><title>无忧脚本代码测试网页</title></head><body><script>functiontest(){varstr=arguments.callee.toString();varlastIndex=str.search(/\(/);varfunName=str.substring(9,lastIndex);alert(funName);}</script><inputid="i"type="button"onc
阅读全文
posted @ 2011-09-28 09:40