问题
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:
according to the documentation:
$(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
来源:https://stackoverflow.com/questions/7802845/callback-for-jquery-zrssfeed-min-js