0
刪除時間,我需要從公佈日期刪除「出版時間」和只顯示「日期」。如何從我創建了使用谷歌API飼料RSS源飼料發佈日期
我有這段代碼。
function rssfeedsetup() {
var feedpointer = new google.feeds.Feed(feedurl) //Google Feed API method
feedpointer.setNumEntries(feedlimit) //Google Feed API method
feedpointer.load(displayfeed) //Google Feed API method
}
function displayfeed(result) {
if (!result.error) {
var thefeeds = result.feed.entries
for (var i = 0; i < thefeeds.length; i++)
rssoutput += "<li><a href='" + thefeeds[i].link + "'>" + thefeeds[i].publishedDate + "</a></li>"
rssoutput += "</ul>"
feedcontainer.innerHTML = rssoutput
}
else
alert("Error fetching feeds!")
}
window.onload = function() {
rssfeedsetup()
}
任何人都可以幫忙嗎?