【发布时间】:2016-05-12 17:47:22
【问题描述】:
您好,我在 Meteor 上使用 matteodem:easy-search 包。现在我正在将我的结果分组为size
Template.UserList.helpers({
users: function () {
all = Meteor.users.find().fetch();
chunks = [];
size = 3;
while (all.length > size) {
chunks.push({ row: all.slice(0, size)});
all = all.slice(size);
}
chunks.push({row: all});
return chunks;
}
});
它就像一个魅力,但现在我想知道如何使用
{{#EasySearch.Each index=playersIndex }}
因为您不能拆分索引。任何人都知道让 EasySearch.Each 与 Bootstrap 行一起工作吗?
谢谢。
【问题讨论】:
-
你不能用你的
EasySearch.Index来代替 find 调用吗?