不幸的是,提交表单的处理与页面请求紧密相连。
Unfortunately, the process of submitting a form is tied to a page request.
在最古老的表单的事件处理程序看起来是这样的。
处理表单的整套方案。
灵活和易于使用的表单生成功能和Postback处理
Flexible and easy to use form generation and postback handling
jQuery 提供一种简便的方法来劫持表单的 submit 事件。再一次传递一个闭包来处理该事件。
在清单13中,您向表单的submit事件添加了一个事件处理程序。
In Listing 13, you add an event handler to the submit event of the form.
处理成功的表单数据提交。
让我们继续介绍处理表单提交的verify.php文件。
Let's move on to the verify.php file that processes the form submission.
这将打开表单的代码页面,并创建Form 1_load事件处理器方法。
This opens the code page for the form, and it creates Form1_Load event handler method.
这样我们就得到了这个表单,接下来让我们继续完成处理表单的Servlet。
We've got the form, so let's move on to the servlet behind it.
这样我们就得到了这个表单,接下来让我们继续完成处理表单的Servlet。
We've got the form, so let's move on to the servlet behind it.
应用推荐