当查询的数据需用多重排序的时候,
这时URL的ordering传参写法应该为:?ordering=-year,-month,-total_code,
es6可以这样写:&ordering=${['-year', '-month', '-total_code']}
完整的模板:*http://127.0.0.1:9001/api-list/?&ordering=-year,-month,-total_code
当查询的数据需用多重排序的时候,
这时URL的ordering传参写法应该为:?ordering=-year,-month,-total_code,
es6可以这样写:&ordering=${['-year', '-month', '-total_code']}
完整的模板:*http://127.0.0.1:9001/api-list/?&ordering=-year,-month,-total_code