2011年9月28日

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 刑天 阅读(1215) 评论(0) 推荐(0)

导航