📜  fake json post api - Javascript 代码示例

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

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