Javascript中arguments的用法
代码如下:
<script language="JavaScript" type="text/javascript">
function fun()
{
var arr=fun.arguments;
for(var i=0;i<arr.length;i++)
{
alert(arr[i]);
}
}
fun("aa","bb","cc");
</script>
function fun()
{
var arr=fun.arguments;
for(var i=0;i<arr.length;i++)
{
alert(arr[i]);
}
}
fun("aa","bb","cc");
</script>