0

Google フィード 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()
}

誰でもこれを手伝ってもらえますか?

4

1 に答える 1