我有一个外部URL,会获取参数并输出类似于下面的结果:
{"result": "not_avail"}
我尝试使用jQuery来获取结果,代码如下:$.get("http://www.thepage.html?id=2&name=david", function(data){
alert("Data Loaded: " + data);
});
但什么也没发生,我没有收到警报,firebug中也没有任何错误。我该如何解决?
$.getJSON
- naveen