$.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("系统错误!"); } });