(015)函数参数arguments

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml">
 3 <head>
 4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 5     <title>json使用</title>
 6     <script type="text/javascript">
 7 
 8         function show()
 9         {
10             alert(arguments.length);
11             alert(arguments[0]);
12             alert(arguments[1]);
13             alert(arguments[2]);
14         }
15 
16         show(1,2,3);
17         
18     </script>
19 </head>
20 
21 <body>
22     
23 </body>
24 </html>

 

posted @ 2014-01-21 23:48  雪中飞雁  阅读(52)  评论(0)    收藏  举报