📜  json 虚拟数据 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:32.708000             🧑  作者: Mango

代码示例3
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://reqres.in/api/products/3", true);
xhr.onload = function(){
    console.log(xhr.responseText);
};
xhr.send();