📜  dummy json - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:29.603000             🧑  作者: 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();