ExtJS4存储,按多个值过滤1个字段

ted*_*ted 2 extjs extjs4

说我有一些商店有一些数据:

id value
1 one
2 two
3 three
4 four

我想通过ID过滤它: store.filter("id", "[1, 4]");

可能吗?是否还有另一种方法可以从商店中获取一些价值id

sha*_*sha 8

store.filter(function(r) {
    var value = r.get('id');
    return (value == 1 || value == 4);
});
Run Code Online (Sandbox Code Playgroud)