Jquery 阅读提要时,如何从中获取详细信息

Jquery 阅读提要时,如何从中获取详细信息,jquery,rss,Jquery,Rss,我正在使用feeds.feedburner.com上的工具阅读feed 我的要求是从feeds.feedburner.com读取一个提要,获取其标题和内容,然后使用这两个参数在我的站点上使用RESTAPI发布一个线程。目前,我无法使用位于的插件获取提要的标题和内容 我的代码如下: $(document).ready(function () { $('#test').rssfeed('http://feeds.feedburner.com/thesartorialist',{},funct

我正在使用feeds.feedburner.com上的工具阅读feed

我的要求是从feeds.feedburner.com读取一个提要,获取其标题和内容,然后使用这两个参数在我的站点上使用RESTAPI发布一个线程。目前,我无法使用位于的插件获取提要的标题和内容

我的代码如下:

$(document).ready(function () {
    $('#test').rssfeed('http://feeds.feedburner.com/thesartorialist',{},function(e) {
        $('h4 a',e).each(function(i) {
            var title = $(this).text();
            if (title.length > 14)

            $(this).text(title);

        });
    });
});
代码片段是从zazar.net中使用的,如果我能够获取标题和内容并将其传递给RESTAPI,那么它就满足了我的要求

如果我需要提供更多细节,请告诉我

var a2 = [];
var a1 = {"title":"", "content":""};

$("#test .rssBody ul li").each(function(){ 
var b = a1;
b.title = $(this).find("h4 a").html(); 
b.content= $(this).find("p").html();
a2.push(b);
});

提前感谢

我已经检查了 您可以使用它绑定内容

$(document).ready(function () {
    $('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews');
});
然后使用jquery遍历内容以获取详细信息

var a2 = [];
var a1 = {"title":"", "content":""};

$("#test .rssBody ul li").each(function(){ 
var b = a1;
b.title = $(this).find("h4 a").html(); 
b.content= $(this).find("p").html();
a2.push(b);
});

如果您想处理这些值,而不仅仅是显示它们,那么应该使用PHP而不是JS获取提要。(见例句)以及如何做,我不懂PHP