小编Sup*_*upr的帖子

Underscorejs _.where with wildcard

在AngularJS控制器中有以下内容:

$scope.initiatives = _.where($scope.initiatives, {i_status_id:'Open'});
Run Code Online (Sandbox Code Playgroud)

如果属性值完全为"打开",则可以根据字段过滤列表.

你如何在过滤器值中使用通配符,以便在我搜索包含"Open"的所有内容时,它会选择"Open-Pending"?

underscore.js angularjs

4
推荐指数
1
解决办法
6239
查看次数

标签 统计

angularjs ×1

underscore.js ×1