代码
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) {
var response = xhr.responseText;
console.log(“网络请求” + response);
}
};
xhr.open(“GET”, “http://127.0.0.1/storybook/public/server/test/12345”, true);
xhr.send();
出现下面错误求大神啊!
Simulator : In the constructor of HttpClient!
Simulator : Response failed, error buffer: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.