开发者

Error on Google HotTrend reader

开发者 https://www.devze.com 2023-03-15 17:19 出处:网络
i tried to get google hot trend data using jquery. i wrote a code for that but it\'s returned error status code 0 could you please help me to find what\'s wrong with that?

i tried to get google hot trend data using jquery. i wrote a code for that but it's returned error status code 0 could you please help me to find what's wrong with that?

here is my code

function topSearchesRss() {
    var url = 'http://www.google.com/trends/hottrends/atom/hourly';
    $.ajax({ type: 'GET',
    开发者_如何学JAVA    url: url,
        datatype: 'xml',
        error: function (err) { alert(err.status);},
        success: function (xml) { alert('sucesss'); }
    });
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号