Atitit. Dwr 抛出异常error解决方案
Atitit.Dwr抛出异常error解决方案 1.Dwr3的处理机制..setErrorHandler 1 2.remoteMtehtrycatch 1 3.林吧,子好java处理,返回空的....走ok兰... 2 1.Dwr3的处理机制..setErrorHandlerfunctionerrh(errorString,exception){ // alert(errorString); // alert(JSON.stringify(exception)); eval(dwrxO9).getErr( function(data){ alert(data); window.open("<%=path%>/com.attilax/util/dwrerr.jsp"); }); } dwr.engine.setErrorHandler(errh); 作者::老哇的爪子Attilax艾龙,EMAIL:1466519819@qq.com 转载请注明来源:http://blog.csdn.net/attilax 2.remoteMtehtrycatchtry{ playwaterX.findByPropertyss_page_count(mp,function(data){ //alert("保存成功"); bindTableData(data.rows); setPageInfo({"total":data.total,"pageSize":10}); }); }catch(e) { logx(e); } 3.林吧,返回空的....走ok兰...returnPageX.getEmptyPageData_EasyuiFmt(); publicstaticMapgetEmptyPageData_EasyuiFmt(){ Mapmp=newHashMap(); mp.put("total",0); mp.put("rows",newArrayList()); returnmp; } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |