这Request.JSON
http://mootools.net/demos/?demo=Request.JSON在这样的方式使用JSON数据,负载国家的国旗国地名API使用JSONP技术
var data = {"previews":[
{"Countrycode":"us", "src":"us.jpg", "description":"desc will be here"},
{"Countrycode":"uk", "src":"uk.jpg", "description":"desc will be here"},
]};
在上述方法中,我们使用Countrycode
& images
每个图像我们的自我书写名字。
我在寻找通过http://api.geonames.org/export/geonamesData.js?username=orakzai使用Geonames
通过http://www.geonames.org/flags/x/xx.gif检索Countrycode
和CountryFlags
其中xx是2个字母的ISO国家代码
其确定为图像,但如何从http://api.geonames.org/export/geonamesData.js得到'Countrycode' ?username = orakzai – Arif
它的脚本,这里是讲述如何加载脚本的mootools页面:[点击这里](http://mootools.net/docs/more/Utilities/Assets),这里是jQuery [点击这里] {http://api.jquery.com/jQuery.getScript/) –
网址现在采用以下格式:http://geotree.geonames.org/img/flags18/xx.png –