编辑下面的代码:【加编码】
<html> <body> <script type="text/vbscript"> Dim food(2,3) food(0,0)="Apple" food(0,1)="Banana" food(0,2)="Orange" food(0,3)="Lemon" food(1,0)="Pizza" food(1,1)="Hamburger" food(1,2)="Spaghetti" food(1,3)="Meatloaf" food(2,0)="Cake" food(2,1)="Cookie" food(2,2)="Icecream" food(2,3)="Chocolate" document.write(LBound(food,1) & "<br>") document.write(UBound(food,1) & "<br>") document.write(LBound(food,2) & "<br>") document.write(UBound(food,2) & "<br>") </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂