Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Angular 带有一个称为“过滤器”的标准过滤器。我正在定义自己的过滤器,我想采取的第一步是使用包含的“过滤器”过滤器过滤我的列表——如何从我正在定义的新过滤器中访问它?
注入并使用 Angular 的过滤器服务:
var existingFilter = $filter('filtername'); var result = existingFilter('some_param');