业务层返回json数据:
List<HashMap<String,String>> res = null;
try{
res = searcher.search(namesArr, valuesArr,1);
}catch(Exception e){
}
String json = new Gson().toJson(res);
return json;
前端ajax接收json数据:
但是,浏览器上看到的结果就是红框部分执行不过去,一直红叉,不知道为什么?
我觉得语法问题
results = xxx
console.log(results)看看是啥玩意