📜  dummy api json - Javascript 代码示例

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

代码示例2
var xhr = new XMLHttpRequest();
xhr.open("GET", "www.carimagery.com/api.asmx/GetImageUrl?searchTerm=corolla", true);
xhr.onload = function(){
    console.log(xhr.responseText);
};
xhr.send();