function load_list() {
$.ajax({
url:"${pageContext.request.contextPath }/restaurant/getDituList",
type:"POST",
data:{
"AppId":null
},
error: function(request) {
alert("Connection error");
},
dataType:"json",
success:function(res){
PackagData(res);
}
});
}
@At
@Filters(@By(type = CrossOriginFilter.class))
public Object getDituList(@Param("AppId") String AppId,@Param("orgid") String orgid){
List<Restaurant> list=reDao.getDituList(AppId, orgid);
int count=reDao.getDituListCount(AppId, orgid);
Map<String,Object> res=new HashMap<String, Object>();
res.put("Rows", list);
res.put("pages", count);
return res;
}
打断点看list 有值但是上面有一个门的图标,页面alert undefined......