【发布时间】:2015-08-18 03:33:39
【问题描述】:
我在 Angular JS 中有两个具有相同字段的对象:
notifications.fb
notifications.tw
如何合并并按归档时间排序?
【问题讨论】:
-
Angularjs merge two objects 的可能重复项
标签: javascript angularjs
我在 Angular JS 中有两个具有相同字段的对象:
notifications.fb
notifications.tw
如何合并并按归档时间排序?
【问题讨论】:
标签: javascript angularjs
angular.extend({}, notifications.fb, notifications.tw);
或
angular.extend(notifications.fb, notifications.tw);
【讨论】: