从其他远程服务器使用AJAX获取文件?
问题描述:
任何人请建议任何远程服务器url提供任何文件免费,所以我可以使用AJAX在本地获取文件
anyone please suggest any remote server url which provide any file free, so i can get file on local using AJAX
var request=new XMLHttpRequest();
request.open('GET','',false);
request.send();
console.log(request);
我想存取使用AJAX公开提供的档案
i want to access files which are publicly available using AJAX
答
var url= http://api.geonames.org/postalCodeLookupJSON?postalcode=6600&country=AT&username=demo;
request.open('GET',url,false);