0
如何基於angularjs中的兩個json數組對象過濾複選框,這裏的關鍵字與comp1和comp2相同。如何將選定的這兩個json對象推送到一個數組中。如何在angularjs中使用json檢索基於數據的複選框選擇
var comp1=
[
{
"ID": "GROUP",
"Name": "client ",
"ListItemID": "GROUP",
"ListItemUniqueId": "00000000-0000-0000-0000-000000000000",
"isSelected": true
},
{
"ID": "co1",
"Name": "comp1",
"ListItemID": "3",
"ListItemUniqueId": "00000000-0000-0000-0000-000000000000",
"isSelected": true
}];
var comp2=[
{
"Access": null,
"AuditFile": null,
"CurrentItem": null,
"DAPSortOrder": 1,
"DocName": null,
"DocTitle": null,
"DocUrl": null,
"EnableComponent": false,
"Id": 1,
"ImageUrl": null,
"PeriodName": "Planning",
"RelatesTo": co1,
"created": null,
"type": null
}];
這需要一點澄清。也許發佈你的HTML代碼會有所幫助。 –