调试运行
<html> <head> <title>取得数组的大小</title> </head> <body> <script language="javascript"> <!-- souce = new Array(85,72,98); size = souce.length; document.write("souce数组的大小为:",size); //--> </script> </body> </html>