想在当前网页的一个表格中显示变量,用document.write()命令
參考答案:<script language="javascript">
var a="aa"
var b="bb"
</script>
<table border="1">
<tr>
<td>
<script language="javascript">
document.write (a)
</script>
</td>
<td>
<script language="javascript">
document.write (b)
</script>
</td>
</tr>
</table>