在提交前,先将验证数据,然后将数据展示在前一个页面,javascript是如何写的
页面ee.jsp中
<table width="75%" border="1">
<tr><th style="color:red">fieldName</th><th style="color:red">dataValue</th>
<th style="color:red">sourceClass</th></tr>
<tr><td> </td><td> </td><td> </td></tr>
</table>
<input type="button" value="增加" onclick="window.location='ClassMainTain_write.jsp'"style="color:blue">
在我点击“增加”后。来到ClassMainTain_write.jsp页面,在这个页面中我输入了信息,然后点击<input type="submit" value="提交" onclick="display()">
现在:要求在display函数中能实现把刚才提交的数据显示在ee.jsp页面的table表中
,就是说,使table表添加一新行,在新行中显示刚提交的信息。
请问,函数如何写?????