【问题标题】:How to add filter parameters in angular js (using or )?如何在 Angular js 中添加过滤器参数(使用 or )?
【发布时间】:2015-03-13 06:06:20
【问题描述】:

我想在我的代码中添加过滤器参数。 我知道如何使用 & 添加多个过滤器参数。但我想为变量提供两个选项(sql 查询将是 ...where Account In("ABC,"DEF"))。

dataSource: {
                type: "jsonp",

                transport: {
                    read: function(e) {
                        reportService.WebAPI('ByIUAct', {
                            Activity:'ABC',
                            Activity:'DEF',                       

                            OrderBy: getOrderBy(e.data.sort)
                        }).then(function (d) {
                            $scope.data = d;
                            e.success(d.Data);
                            });
                    }
                },

如何将两个过滤器参数提供给我的 api url?上面的代码会报错。

谢谢

【问题讨论】:

    标签: angularjs angularjs-filter


    【解决方案1】:

    这样做了

     reportService.WebAPI('ByIUAct', {
                                Activity:'ABC, DEF',
                             }
    

    【讨论】:

    • 这与 AngularJS 过滤器有什么关系(如果它通常与 Angular 相关)?
    猜你喜欢
    • 1970-01-01
    • 2016-12-26
    • 2021-05-07
    • 1970-01-01
    • 2020-02-21
    • 1970-01-01
    • 2016-03-30
    • 2014-12-26
    • 2014-11-15
    相关资源
    最近更新 更多