我在页面通过js发起http请求时URL不能被正常识别
JS部分代码
platformurl = "http://127.0.0.1:7777/api/Payh5/getplatform"
var httpRequest1 = new XMLHttpRequest();
httpRequest1.open('get',platformurl,false);
httpRequest1.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
httpRequest1.send();
发起请求后url被当成相对url拼接了
百思不得其解