var xhr = new XMLHttpRequest();
xhr.open('POST', 'http://localhost:8080/login');
xhr.send(null);
xhr.onload = function(e) {
var xhr = e.target;
console.log(xhr.responseText);
}  

测试网站:http://www.jszg.edu.cn/portal/home/index

 

posted on 2019-08-14 10:26  迷惘的羔羊2018  阅读(1841)  评论(0)    收藏  举报