Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们如何在 struts2 字段上使用事件(更改、单击等)作为提交表单或调用操作支持类?我正在使用带有 jquery 和 ajax 的 struts2。
您只需单击以下按钮即可提交表单:
<form name="myform"> <!-- Other form elements --> </form> <input type="button" value="Submit" onclick="document.forms['myform'].submit();"/>