就是怎样才能在JSP页面调用那个Jxddmx()让她在初始后填写第一行完成数据后按回车事件调用jxddmx()函数往下面继续生成表格一行呢?就是增加一个格式类似初始行的tr?
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style>
.txt_l {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #307ab7;
}
</style>
<script type="text/javascript">  function Jxddmx()
  {  document.write("<tr onclick='display(this)'>");
  document.write("<td width='1%' align='center' class='txt_l'>");
  document.write("&nbsp;");
  document.write("</td>");
  document.write("<td width='2%' height='16' align='center' class='txt_l'>");
  document.write("<input name='spbh' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
  document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='spmch' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
  document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='shpgg' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
   document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='dw' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
   document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='pihao' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
   document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='sl' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
   document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='dj' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
  document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='spmch' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
  document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='spmch' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
  document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='spmch' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
  document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='spmch' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
 document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='spmch' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
  document.write("<td width='2%' align='center' class='txt_l'>");
  document.write("<input name='spmch' type='text' class='input' style='width: 80pt; border: 0; border-bottom: 0 solid #307ab7; background: ;'>");
  document.write("</td>");
  document.write("</tr>");  }
</script>
<link href="css.css" rel="stylesheet" type="text/css">
<SCRIPT language=JavaScript src="/sksoft/js/meizzDate.js"></SCRIPT>
<body>
  <form action="" method="post" name="spkfkForm">
<table width="60%" height="9%" class="input" border=1 cellspacing=0 id="table_id"
bordercolorlight=#333333 bordercolordark=#efefef class=ListTitle>
<tr>
<td height="10" colspan="2" align="center">
<div align="left" class="txt_l">
订单明细
</div>
</td>
</tr>
<tr class="input">
<td width="1%" align="center" class="txt_l">
&nbsp;
</td>
<td width="4%" height="16" align="center" class="txt_l">
商品编号
</td>
<td width="4%" align="center" class="txt_l">
商品名称
</td>
<td width="4%" align="center" class="txt_l">
商品规格
</td>
<td width="4%" align="center" class="txt_l">
单位
</td>
<td width="4%" align="center" class="txt_l">
批号
</td>
<td width="5%" align="center" class="txt_l">
数量
</td>
<td width="5%" align="center" class="txt_l">
单价
</td>
<td width="5%" align="center" class="txt_l">
开票价
</td>
<td width="3%" align="center" class="txt_l">
金额
</td>
<td width="4%" align="center" class="txt_l">
开票金额
</td>
<td width="4%" align="center" class="txt_l">
产地
</td>
<td width="3%" align="center" class="txt_l">
计量规格
</td>
<td width="5%" align="center" class="txt_l">
备注
</td> </table>
</form>
<p>
&nbsp;
</p>
</body>
</html>