我想从 rss 提要中获取标题和图像以显示在页面上。我从 rss 提要中获取标题,但我无法获取图像。请帮助我。
<script type="text/javascript">
jQuery(function() {
jQuery.getFeed({
url: 'http://news.yahoo.com/rss/world',
success: function(feed) {
var html1 = '';
var html2 = '';
var html3 = '';
var item = feed.items[0];
html1 +=item.image;
alert(html1);
jQuery('#latestnews1').append(html1);
var item1 = feed.items[3];
html2 += item1.description;
jQuery('#latestnews2').append(html2);
var item2 = feed.items[4];
html3 += item2.description;
jQuery('#latestnews3').append(html3);
}
});
});
</script>