本来用的同步响应,但是chrome提示方法过时,
把open函数里面的false参数改成true以后,传过去的文件报错。
load函数(js语言)如下:
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", file, false);
xmlhttp.send(null);
return xmlhttp.responseXML;
请问如何实现异步请求,需要在服务端(go语言)做什么?