📅  最后修改于: 2022-03-11 15:04:32.708000             🧑  作者: Mango
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://reqres.in/api/products/3", true);
xhr.onload = function(){
console.log(xhr.responseText);
};
xhr.send();