【发布时间】:2014-04-20 06:11:45
【问题描述】:
亲爱的,
Template.tmp_detail_campaign_code_batch.events({
'click .ancProdCodePagination': function (e) {
Meteor.subscribe('ItemPage', Number*10,10)
}
});
它的定义:
Meteor.publish('ItemPage', function(skipItem, takeItem){
return Item.find({},{
skip : skipItem,
limit : takeItem
}); }
当我点击 .ancProdCodePagination 时,订阅项目的数量不断增加 10。对于分页,我想让数量保持在 10,但每次点击的项目不同。
我该怎么办?
【问题讨论】: