我一直在搜索arround,我无法从这个例子中检索JSON信息。有人可以帮我吗?JSON调用失败,JQuery
var jsonURL = "http://mdc2.cbuc.cat/dmwebservices/index.php?q=dmGetCollectionList/json";
var jqxhr = $.getJSON(jsonURL, function(data) {
alert("Success!");
alert(data[0].alias);
})
.success(function() { alert("second success"); })
.error(function() { alert("error"); })
.complete(function() { alert("complete"); });
jqxhr.complete(function(){ alert("second complete"); });
我检查的网址,到处它说是有效的,以及格式化......
只有当它是JSONP时,才能从其他域中检索JSON。 –