【发布时间】:2016-12-19 08:50:36
【问题描述】:
我有一个表格,其中包含一些记录及其创建日期。 $scope 数据如下所示:
$scope.data = [{
"FeeId": "17",
"FirmName": "LAWFIRM1",
"countryId": "IN",
"filing": "REI-Reissue",
"agentFeeCode": "AGNT",
"feeType": "GOVT",
"Term": "Fixed",
"Amount": "150",
"comments": "test comment",
"startDate": "13-DEC-16"
},{
"FeeId": "18",
"FirmName": "LAWFIRM2",
"countryId": "IN",
"filing": "REI-Reissue",
"agentFeeCode": "AGNT",
"feeType": "GOVT",
"Term": "Open",
"Amount": "150",
"comments": "test comment",
"startDate": "11-DEC-16"
}]
我需要一个基于 startDate 排序的 AngularJS 前端。它目前不适用于 string 格式的日期。
如何使用 AngularJS 在前端按startDate 对数据进行排序?
【问题讨论】:
-
最后反馈,谢谢。
标签: javascript php angularjs json