阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      插件 jQuery.FeedEk 中文API文档

      插件 jQuery.FeedEk 中文API文档 https://github.com/enginkizil/FeedEk FeedEk jQuery RSS/ATOM Feed Plugin

      FeedEk is a jQuery plugin for parsing and displaying RSS and Atom feeds. You can obtain feeds easily from any domain. No need for server-side scripts.

      Plugin Homepage

      Demo

      Usage

      1- Include jQuery and FeedEk plugin scripts into your page.

       <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
       <script type="text/javascript" src="FeedEk.min.js"></script>
      

      2- Add a placeholder for the plugin to your page.

      <div id="divRss"></div>
      

      3- Call the plugin.

      - Basic

      $('#divRss').FeedEk({
          FeedUrl : 'https://jquery-plugins.net/rss',
        });
      

      - With Options

      $('#divRss').FeedEk({
          FeedUrl : 'https://jquery-plugins.net/rss',
          MaxCount : 5,
          ShowDesc : true,
          ShowPubDate:true,
          DescCharacterLimit:100,
          TitleLinkTarget:'_blank'
        });
      

      - With Date Format Options

      $('#divRss').FeedEk({
          FeedUrl : 'https://jquery-plugins.net/rss',
          MaxCount : 5,
          ShowDesc : true,
          ShowPubDate:true,
          DescCharacterLimit:100,
          TitleLinkTarget:'_blank',
          DateFormat : 'MM/dd/yyyy',
          DateFormatLang : 'en'
        });
      

      Options

      • FeedUrl Your Feed Url and it’s required
      • MaxCount Feed Item Count. Default is 5
      • ShowDesc Option to show Feed Item Description. Default is true
      • ShowPubDate Option to show Feed Item Publish Date. Default is true
      • DescCharacterLimit Feed Description Characters Limit Count. Default is no limit
      • TitleLinkTarget Option for Feed Title Link Target. Default is _blank
      • DateFormat Option for Feed Publish Date Format. Default is none
      • DateFormatLang Option for Feed Publish Date Format Language for localization. Default is en

      Demo

      Plugin Homepage

      Demo

      目录
      本文目录
      目录