<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body>
<script type="text/javascript" language="javascript">
<!--
function Foo()
{
document.write("<p>共有" + arguments.length + "个参数,它们的值分别是:<p>");
for (var i=0; i<arguments.length; i++)
{
document.write("<p>" + arguments[i] + "</p>");
}
}
Foo("123", "abc", "教程", "下载", "JavaScript");
//-->
</script>
</body>
</html>
JavaScript函数参数个数
最新推荐文章于 2021-09-25 14:17:03 发布