Callback for jquery.zrssfeed.min.js

2019-08-02 09:05发布

zrssfeed.min.js to parse my Yahoo Pipes feed.

I need to fetch data from the structure built by the the plugin (i mean Parsing) and then insert the fetched data into other DOM elements.

I need a callback function to the function call to jquery.zrssfeed.min.js so that fetch data from its structure would be at ease.

How do I call the callback function? I mean i want the syntax. Where do I insert the call to the function in here?

$(document).ready(function () {
  $('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
    limit: 5
  });
});

1条回答
在下西门庆
2楼-- · 2019-08-02 09:37

according to the documentation:

enter image description here

$(document).ready(function () {
  $('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
    limit: 5
   }, 
   function (e) {
        // there you go
   }
  });
});

see source of this example-page for usage

查看更多
登录 后发表回答