基于角度js中的AND,OR,NOT条件添加或删除多个列表项

时间:2017-08-20 03:56:58

标签: javascript angularjs

我想在AND / OR / NOT运算符的基础上添加多个添加或删除多个规则。例如:rule1> 12h&&规则2< 10H。我们怎么能这样做?

<label class="control-label" for="field_notificationRules">Notification 
Filter Rules:</label>

    <div class="form-group">
        <table class="table table-stripped table-bordered">
        <thead>
            <tr>
                <th><label class="control-label" for="field_filterRuleDefinition">Rule Definition</label></th>
                <th>&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <input type="text" class="form-control" name="notificationFilterRulesDefinition" id="field_filterRuleDefinition" ng-model="vm.notificationRules.notificationRules.notificationFilterRules.notificationFilterRulesDefinition"/>
                </td>
                <td><button class="btn fa fa-plus" ng-click="addNewFilterRow()">Add</button></td>
            </tr>
            <tr ng-show="filterShow">
                <td>
                    <input type="text" class="form-control" name="notificationFilterRulesDefinition" id="field_filterRuleDefinition" ng-model="vm.notificationRules.notificationRules.notificationFilterRules.notificationFilterRulesDefinition"/>
                </td>
                <td><button class="btn fa fa-plus" ng-click="addNewFilterRow()">Add</button></td>
            </tr>
        </tbody>
        </table>
    </div>

0 个答案:

没有答案