【发布时间】:2010-01-13 15:28:26
【问题描述】:
我正在尝试通过 Ajax 加载 Twitter 帐户的最后一篇文章。我有网址,即:
http://twitter.com/statuses/user_timeline/myuser.json?count=1
这行得通:
$.get("test.php", function(data){
alert("Data Loaded: " + data);
});
如果我在 Firebug 中监控控制台,这甚至不会发出请求:
$.get("http://twitter.com/statuses/user_timeline/myuser.json?count=1", function(data){
alert("Data Loaded: " + data);
});
我在使用 .load、.post、.ajax 时遇到了同样的问题......
我该怎么做?
编辑:
我尝试使用 getJSON :
$.getJSON("http://twitter.com/statuses/user_timeline/user.json?count=1",
function(data){
alert("here");
});
...仍然没有,我什至没有收到警报。
【问题讨论】: