<html>
<head>
<title>无忧脚本代码测试网页</title>
</head>
<body>
<script>
function test()
{
var str = arguments.callee.toString();
var lastIndex = str.search(/\(/);
var funName = str.substring(9,lastIndex);
alert(funName);
}
</script>
<input id="i" type="button" οnclick="test();">
</body>
</html>
<head>
<title>无忧脚本代码测试网页</title>
</head>
<body>
<script>
function test()
{
var str = arguments.callee.toString();
var lastIndex = str.search(/\(/);
var funName = str.substring(9,lastIndex);
alert(funName);
}
</script>
<input id="i" type="button" οnclick="test();">
</body>
</html>