小编Ped*_*ues的帖子

将 AngularJS $filter('filter') 与 OR 一起使用

我有这个对象

$scope.items = [
    {id:1, name:'John'},
    {id:2, name:'Steve'},
    {id:3, name:'Joey'},
    {id:4, name:'Mary'},
    {id:5, name:'Marylin'}];
Run Code Online (Sandbox Code Playgroud)

我需要按两个值进行过滤,例如 3、4 我正在尝试类似的方法

$scope.items2 =  $filter('filter')($scope.items, {id:3,4});
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点?需要使用自定义过滤器吗?

http://jsfiddle.net/cWVrV/23/

angularjs angular-filters

2
推荐指数
1
解决办法
2879
查看次数

在Magento上找不到html

我在我的Magento商店www.casekit.com.br上有这个,我需要更改这个HTML,但我找不到

<?php echo $this->getChildChildHtml('container2', '', true, true) ?>
Run Code Online (Sandbox Code Playgroud)

在catalg.xml上我有这个

<block type="core/template_facade" name="product.info.container2" as="container2">
<action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
<action method="setDataByKeyFromRegistry"><key>options_container</key>
<key_in_registry>product</key_in_registry></action>
<action method="append"><block>product.info.options.wrapper.bottom</block></action>
<action method="append"><block>product.info.options.wrapper</block></action>
</block>
Run Code Online (Sandbox Code Playgroud)

我需要编辑这个HTML文件,但我找不到,我总是有magento的这种问题.

我试图寻找另一种方式,但我找不到任何东西

谢谢

magento

0
推荐指数
1
解决办法
6138
查看次数

标签 统计

angular-filters ×1

angularjs ×1

magento ×1