easyui ajax返回数据后刷新页面
发布时间:2020-12-16 00:42:29 所属栏目:百科 来源:网络整理
导读:$.ajax({type : "post",url : "${pageContext.request.contextPath}/expros!addExProsInfo.do",data : data,success : function(items) {$("#exnotice").html("");if(items == 'no') {alert("出库失败!");} else {$('#target_expros_datagrid').datagrid('lo
$.ajax({ type : "post",url : "${pageContext.request.contextPath}/expros!addExProsInfo.do",data : data,success : function(items) { $("#exnotice").html(""); if(items == 'no') { alert("出库失败!"); } else { $('#target_expros_datagrid').datagrid('load'); //找到id为target_expros_datagrid的div刷新数据 $('#target_ExWarehouse_datagrid').datagrid('load'); //找到id为target_ExWarehouse_datagrid的div刷新数据 } },beforeSend : function() { $("#exnotice").html("出库中..."); },error : function(XMLHttpRequest,textStatus,errorThrown) { $("#exnotice").html(""); alert("系统错误!"); } }); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |