回调jquery.zrssfeed.min.js [英] Callback for jquery.zrssfeed.min.js
问题描述
zrssfeed.min.js解析我的Yahoo Pipes feed.
我需要从插件构建的结构中获取数据(我的意思是解析),然后将获取的数据插入其他DOM元素中.
我需要一个对jquery.zrssfeed.min.js的函数调用的回调函数,以便可以轻松地从其结构中获取数据.
如何调用回调函数?我的意思是我想要语法.我在哪里在哪里插入对函数的调用?
$(document).ready(function () {
$('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
limit: 5
});
});
根据文档:
$(document).ready(function () {
$('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
limit: 5
},
function (e) {
// there you go
}
});
});
请参见此示例页面的来源 >
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
});
});
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
这篇关于回调jquery.zrssfeed.min.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!