Angularjs 角度数据表数字范围筛选器不使用非数字字符

Angularjs 角度数据表数字范围筛选器不使用非数字字符,angularjs,datatables,filtering,Angularjs,Datatables,Filtering,在我的项目()中,我正在使用带有列过滤器的角度数据表。 当筛选列中存在其他字符(数字除外)时,数字范围筛选器出现问题。我已经找了一段时间的解决方案,但运气不好。(我也试过这个) {{price.replace(',','')|货币:'$'} {{price.replace(',','')} //定义datatables工具的选项-带列筛选 $scope.dtOptions=DTOptionsBuilder.newOptions() .withOption('order',[[4',desc']

在我的项目()中,我正在使用带有列过滤器的角度数据表。 当筛选列中存在其他字符(数字除外)时,数字范围筛选器出现问题。我已经找了一段时间的解决方案,但运气不好。(我也试过这个)


{{price.replace(',','')|货币:'$'}
{{price.replace(',','')}
//定义datatables工具的选项-带列筛选
$scope.dtOptions=DTOptionsBuilder.newOptions()
.withOption('order',[[4',desc']]))
.withOption(“sDom”),“”)
.withColumnFilter({sPlaceHolder:“head:after”,
AO列:[
{
类型:“数字范围”
}, ...
]
});


以前有人遇到过这个问题吗?欢迎任何意见

你可以写一个自定义的filter@Ioana你能解决这个问题吗?不,不幸的是,出于这个和其他几个原因,我不得不为表过滤、排序和呈现编写自己的自定义解决方案-与角度数据表无关。你可以编写自定义解决方案filter@Ioana你能解决这个问题吗?不,不幸的是,出于这个原因和其他几个原因,我不得不为表过滤、排序和呈现编写自己的定制解决方案——与角度数据表无关。
<!-- PRICE NOT FILTERED -->
<td class="text-left">
{{ price.replace(',','') | currency:'$' }}
</td>   

<!-- PRICE FILTERED CORRECTLY -->
<td class="text-left">
{{ price.replace(',','') }}
</td> 

// define options for the datatables tool - with column filtering
$scope.dtOptions = DTOptionsBuilder.newOptions()
    .withOption('order', [[4, 'desc']])
    .withOption("sDom", '<<t>lip>')
    .withColumnFilter({ sPlaceHolder: "head:after",
        aoColumns: [        
        {
            type: 'number-range'
        }, ...
]
});