0
我應該如何排序日期(最新的頂部)?
目前,日期未排序。rss從最新的排序日期
下面是我的jsfiddle:
$(document).ready(function() {
$('#divRss').FeedEk({
FeedUrl: 'https://www.google.com/finance/company_news?q=SGX:533&ei=EeiDWaGGMpXUuATxloPgAw&output=rss'
});
var r = Math.floor(Math.random() * 256);
var g = Math.floor(Math.random() * 256);
var b = Math.floor(Math.random() * 256);
$('#example, .itemTitle a').css("color", getHex(r, g, b));
$('#example').click(function() {
$('.itemTitle a').css("color", getHex(r, g, b));
});
function intToHex(n) {
n = n.toString(16);
if (n.length < 2)
n = "0" + n;
return n;
}
function getHex(r, g, b) {
return '#' + intToHex(r) + intToHex(g) + intToHex(b);
}
});
對於RSS從谷歌你「應該」能夠'&得分= N'或'&得分= D'添加到URL來先得到最新的,但它似乎並沒有工作。 – nnnnnn