标签:function 浏览器 produces return public
$("#ajax").on("click",{btn:$(‘#ajax‘)},function(evdata){ $.get("pull",{id:13},function(data){ console.info(data); evdata.data.btn.click(); },"json"); });
@RequestMapping(value = { "pull" }, produces = { "application/json" }, method = { RequestMethod.GET }) public Model pull(Model model){ try { Thread.sleep(30000); model.addAttribute("data", new Date()); } catch (InterruptedException e) { e.printStackTrace(); } return model; }
本文出自 “天空海阔” 博客,请务必保留此出处http://ether007.blog.51cto.com/8912105/1533470
标签:function 浏览器 produces return public
原文地址:http://ether007.blog.51cto.com/8912105/1533470