<div class="codetitle"> <span><a style="CURSOR: pointer" data="97132" class="copybut" id="copybut97132" onclick="doCopy('code97132')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code97132"> <br><form id="myForm" method="post"> <br> <table align="center" style="width:400px;height:auto;margin-top: 20px"> <br> <tr> <br> <td align="right">命令:</td> <br> <td><input id="cmd" name="cmd" style="width: 200px;" class="easyui-validatebox" required="true" validtype="length[5,12]" missingmessage="不能为空"></td> <br> </tr> <br> <tr> <br> <td align="right">描述:</td> <br> <td><input id="depict" name="depict" style="width: 200px;" class="easyui-validatebox" required="true" validtype="length[5,12]" missingmessage="不能为空"></td> <br> </tr> <br> <tr> <br> <td align="right">类型:</td> <br> <td> <input id="type" style="width: 200px" class="easyui-validatebox"> url="data/editHealthCheckCombobox_data.json" valueField="id"<br> textField="text" /></td> <br> </tr> <br> <tr> <br> <td align="right">分数:</td> <br> <td><input id="score" name="score" style="width: 200px" valuefield="number"></td> <br> </tr> <br> <tr> <br> <td align="right">使用状况:</td> <br> <td><input id="isUse" style="width: 200px" class="easyui-validatebox"></td> <br> </tr> <br> <tr> <br> <td align="center" colspan="2"> <br> <input type="submit" value="提交"><br> <input type="reset" value="重置"><br> </td> <br> </tr> <br> </table> <br> </form> <br> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="88846" class="copybut" id="copybut88846" onclick="doCopy('code88846')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code88846"> <br>//表单提交<br> $('#myForm').form({<br> url:'/ProcessServlet',<br> onSubmit:function(){<br> return $(this).form('validate');<br> },<br> success:function(data){<br> alert(data);<br> }<br> }); <br> </div>