日期:2014-05-16 浏览次数:20388 次
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
<script>
var a=new Array(3);
a[0]=function(x){return x*x};
a[1]=20;
a[2]=a[0](a[1]);
</script>
<a href="javascript:alert(a[2]);">输出a[2]的值</a>
</body>
</html>