<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script type="text/javascript">
var result;
function fn(a,b,c)
{
var s = "";
var i;
s += "函数传入参数个数:" + arguments.length + " ";
for (i=0;i<arguments.length;i++)
{
s += "函数传入参数" + i +":" + arguments[i] + " ";
}
s += "函数实际参数个数:" + arguments.callee.length + " ";
result.innerHTML = s;
}
window.onload=function (){
result=document.getElementById('res');
fn('a','1','haha');
}
</script>
<title>无标题文档</title>
</head>
<body>
<div id="res"></div>
</body>
</html>
上面是实例代码。



1063

被折叠的 条评论
为什么被折叠?



