从其他远程服务器使用AJAX获取文件? [英] get a file from other remote server using AJAX?

查看:353
本文介绍了从其他远程服务器使用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);

这篇关于从其他远程服务器使用AJAX获取文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆