摘要:
function f(length){ alert("高为:"+length);} function f(length,width){ alert("高为:"+length+",宽为:"+width);} 上面那段代码其实是行不通的,因为函数定义时的参数个数和函数调用时的参数个数没有任何关系。 在函数中可以用f.arguments[0]和f.arguments[1]得到调用时传入... 阅读全文
posted @ 2007-04-02 09:59
Suntears
阅读(391)
评论(0)
推荐(0)