您可以将XMLHttpRequest用于ajax和JSON.parse用于解析json :)
var xmlhttp = new XMLHttpRequest();xmlhttp.open('GET', '//example.org', true);xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4) { if(xmlhttp.status == 200) { var obj = JSON.parse(xmlhttp.responseText); var countryList = obj.countrylist; } }};xmlhttp.send(null);您永远不要使用eval!评估是邪恶的!您可以在mdn上阅读
UPD:
- 如果没有CORS标头,则可以使用JSONP。只需添加
&callback=getJSONP
到您的URL。在jsfiddle上尝试:http - //jsfiddle.net/VmBF7/3/



