~前端小小菜鸟: 博主你好,像这个数据,在前端如何按条件排序显示呢,(条件是:按距离,按年需求,按残缺需求,按占有率,最近12月销售,最近走访日期,最近报价日期,最近下单日期) var arr2 = [ {"id":1,"distance":74,"cstmGrade":"C","fileDate":"2017-11-15","recentVisitDate":"2018-11-07","recentQttDate":'2019-10-22',"recentOrderDate":'2017-12-22',"recentSales":1000,"demand":10,"smcrate":0.9}, {"id":2,"distance":43,"cstmGrade":"C","fileDate":"2017-12-01","recentVisitDate":"2017-12-22","recentQttDate":'2018-12-22',"recentOrderDate":'2018-12-22',"recentSales":1386,"demand":0,"smcrate":1} ,{"id":3,"distance":100,"cstmGrade":"C","fileDate":"2018-02-01","recentVisitDate":"2019-03-27","recentQttDate":'2017-12-22',"recentOrderDate":'2017-10-03',"recentSales":412,"demand":23,"smcrate":0.2}, {"id":4,"distance":90,"cstmGrade":"C","fileDate":"2018-02-01","recentVisitDate":"2018-02-28","recentQttDate":'2016-12-22',"recentOrderDate":'2019-07-12',"recentSales":733,"demand":5,"smcrate":0.05} ]
后台使用nodejs的好处或者优势
js数组的多条件筛选