脚本语言自生成表格问题

FWSH 2004-07-26 08:34:12
<script language="vbscript">
for i=0 to 10//行循环
document.write("<table border=1 width=100%> <tr>")
for j=0 to 10 //列循环
document.write("<td>nbsp;</td>")
next j
document.write("</tr> </table>")
next i
</script>

for循环难道不是用"for......next"吗?有谁知道呀
...全文
113 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
woyingjie 2004-07-26
  • 打赏
  • 举报
回复
上面javascript写法

---------------------------
<script language="vbscript">
for i=0 to 10
document.write("<table border=1 width=100%> <tr>")
for j=0 to 10
document.write("<td> </td>")
next
document.write("</tr></table>")
next
</script>
-----------
vbscript写法
woyingjie 2004-07-26
  • 打赏
  • 举报
回复
<script>
for(i=0;i<10;i++){
document.write("<table border=1 width=100%> <tr>")
for(j=0;j<10;j++) {
document.write("<td> </td>")
}
document.write("</tr> </table>")
}
</script>

61,129

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧