他這個是已ajax提交的,所有好像服務器設置一個token并不試用,保存按鈕是a標簽 并不是用的button標簽哪位大神會?js代碼://構造對話框 $("#stationOper").dialog({ width : "600", height : "380", buttons : [ { text : "保存", iconCls : "icon-save", handler : function() { $("#stationForm").form("submit", { url : url, onSubmit : function() { return $(this).form("validate"); }, success : function(result) { if (result == "succ") { ? ?$("#stationGrid").datagrid("reload"); $("#stationOper").dialog("close"); } else if(result == "fail") { $.messager.alert("提示", "保存失敗", "error"); } else{ ? ?$.messager.alert("提示", "保存失敗", "error"); ? ?$("#name").val(" ").focus(); } } }); } }, { text : "取消", iconCls : "icon-cancel", handler : function() { $("#stationOper").dialog("close"); } } ] }); });
jquery easyui dialog 怎么防止表單重復提交?
勿莣洎莪
2017-02-21 10:54:21