@RequestMapping(value="listUserJson.html",produces="text/html;charset=UTF-8")
@ResponseBody
public String listUserJson(int page,int rows){
TreeMap<String, Object> map = new TreeMap<>();
map.put("rows", service.listXPUser(page, rows));
map.put("total", service.listXPUserTotal());
return JSON.toJSONString(map);
}
$.ajax({
type: "post",
url: "/pay/yilian/queryPayResult.do",
dataType: "json",
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data:{
rechargeCode:$("#rechargeCode").val()
},
async: false,
success: function(data){
if(data.status == 1){
//console.dir("拿到结果了,成功跳转");
}
}
}); //ajax end!