![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
goodfall
我爱编程
展开
-
javascript_function方法中的arguments
New Document //函数默认有一个隐式的arguments属性,代表实际传递的参数 /** function test1(no1,no2){ alert(no1);//显示1 alert(no2);//显示3 alert(arguments[0]);//显示1,代表传递的第一个实际参数 alert(ar原创 2013-03-29 00:44:01 · 413 阅读 · 0 评论 -
function函数的length属性
New Document //函数的length表示函数期望接受的参数 //注意与arguments的区别 function test0(){ } function test1(no1){ } function test2(no原创 2013-03-29 01:08:37 · 646 阅读 · 0 评论