如何用VBscript编写一个3*3的表格

来源:百度知道 编辑:UC知道 时间:2024/05/10 06:17:46
用VBscript编写一个3*3的表格,

形如:

1 2 3

4 5 6

7 8 9

数字是在表格里面哦,谢谢

<%
dim a(2,2)
dim i,j,s
i=0
j=0
s=0
response.Write "<table border=1>"
for i=0 to 2
response.Write "<tr>"
for j=0 to 2
a(i,j)=s+1
response.Write "<td>"
response.Write a(i,j)
response.Write "</td>"
s=a(i,j)
next
response.Write "</tr>"
next
response.Write "</table>"
%>
我验证了下 应该是可以的 不知道是不是你要的