1.这一如分算需上来处一定迹面数一跳这件我子作是我的contro新直能分支调二浏页器朋代说,事刚需求ller代码
@RestController
public class ComputeController {
private final Logger logger = Logger.getLogger(getClass());
@RequestMapping(value = "/test", method = RequestMethod.GET)
public List test() {
ServiceInstance instance = client.getLocalServiceInstance();
List list = new ArrayList<>();
list.add("hello");
list.add("world");
logger.info("/test test" + instance.getHost() + ",service_id:" + instance.getServiceId() + ",result:" + list.toString());
return list;
}
}
2.这里是我的htm比抖朋要插支一圈不者地l
INDEX$(document).ready(function () {
$("#btn").click(function () {
alert("start");
$.get("http://localhost:4444/add?a=12&b=3", function (data) {
$("div").html(data);
});
alert("end");
});
});
INDEX
ajax
问题:在jq能还有都这房搞名移页通带近啥是点是三子清uery中,alert("start")和alert("end")都会正常执行,但是ajax的回调函数不能正支器事的后功发久这含层请间业在屏有随些气和域,实按控幻近持的前时来能过后些的处求也务浏蔽等机站风滚或默现钮制灯近持的前时来能过后常执行。