zrssfeed.min.js 解析我的 Yahoo Pipes 提要。
我需要从插件构建的结构中获取数据(我的意思是解析),然后将获取的数据插入到其他 DOM 元素中。
我需要一个回调函数来调用 jquery.zrssfeed.min.js 以便从其结构中轻松获取数据。
如何调用回调函数?我的意思是我想要语法。我在哪里插入对函数的调用?
$(document).ready(function () {
$('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
limit: 5
});
});
最佳答案
根据documentation :
$(document).ready(function () {
$('#test').rssfeed('http://feeds.reuters.com/reuters/oddlyEnoughNews', {
limit: 5
},
function (e) {
// there you go
}
});
});
查看来源 example-page供使用
关于javascript - jquery.zrssfeed.min.js 的回调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7802845/