//onsubmit方法 后端给前端传值
protected override void OnSubmit(string actionName, H3.SmartForm.SmartFormPostValue postValue, H3.SmartForm.SubmitSmartFormResponse response)
{
//默认response.ReturnData值为null,所以此处需要初始化
response.ReturnData = new Dictionary<string, object>();
response.ReturnData.Add("flag", flag);
}
// 提交后事件 前端响应
AfterSubmit: function( action, responseValue ){
var flag=responseValue.ReturnData["flag"];
}
前后端交互
最新推荐文章于 2024-07-24 19:00:50 发布