0
如何使用運算符「in」過濾kendo數據源? 例子:kendo ui數據源過濾器「in」
var original_data = [
{"group": [1, 2], "name": "Coca Cola"},
{"group": [1, 3], "name": "Pizza"}
];
function filter_articles(original_data, group) {
return new kendo.data.DataSource({
data: original_data,
filter: { field: 'group', operator: 'in', value: parseInt(group) }
});
}