0
</html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
$.ajax({
type: 'GET',
url: 'http://api.twitter.com/1/statuses/retweeted_to_me.json?&callback=?',
success: function(data) {
alert(data);
},
error: function(data) {
}
});
</script>
</html>
我知道這個網址給我,當我打這個網址上的瀏覽器:如何在ajax調用中捕獲響應?
{
error: "Could not authenticate you."
request: "/1/statuses/retweeted_to_me.json"
}
我要趕同樣的事情在我的ajax調用以上。現在alert(data)
爲空