url:'你asp的路径, params:{ BudgetName:budgetName, StartDate : new Date(startDate).format('Y-m-j'), EndDate : new Date(endDate).format('Y-m-j'), BookSetId : bookSetId } , method:'POST', waitMsg : "正在存储,请稍侯...", success : function(response, options) { var response = Ext.util.JSON.decode(response.responseText); if (response.success == 'true') { Ext.Msg.alert("提示信息", ' 存储成功! '); store.reload(); grid.reconfigure(store, cm); winAdd.close(); } else { Ext.Msg.alert("提示信息", '不能添加模板信息!请检查模板名称是否重复!'); } } , failure:function() { Ext.Msg.alert('提示信息', ' 操作失败! '); } }) ;//end for ajax |