$(‘#stationForm‘).form(‘submit‘, { url: "saveStationInfo.htm", dataType:"json", onSubmit: function(){ var isValid = $(this).form(‘validate‘); if (!isValid){ $.messager.alert(‘提示‘,‘修改失败!‘,‘info‘); } return isValid; }, success: function(data){ $.messager.confirm(‘提示‘,‘修改成功!确认修改?‘,function(r){ if (r){ location.href = ‘stationInfo.htm‘; } }); } });
相关文章
- 11-10项目中废弃的form表单普通提交