两个数组,把其中ID相同的项去除,返回一个新的数组
var b1=[
{
"ID": 1,
"Name": "sample strin",
"ImgUrl": "sample stng 3"
},
{
"ID": 2,
"Name": "sample strin2",
"ImgUrl": "sample string 3"
},
{
"ID": 3,
"Name": "sample strin",
"ImgUrl": "sample stng 3"
},
{
"ID": 4,
"Name": "sample strin2",
"ImgUrl": "sample string 3"
},
{
"ID": 5,
"Name": "sample strin",
"ImgUrl": "sample stng 3"
},
{
"ID": 6,
"Name": "sample strin2",
"ImgUrl": "sample string 3"
},
{
"ID": 8,
"Name": "sample strin2",
"ImgUrl": "sample string 3"
},
{
"ID": 9,
"Name": "sample strin",
"ImgUrl": "sample stng 3"
},
{
"ID": 10,
"Name": "sample strin2",
"ImgUrl": "sample string 3"
},
{
"ID": 11,
"Name": "sample strin",
"ImgUrl": "sample stng 3"
},
{
"ID": 12,
"Name": "sample strin2",
"ImgUrl": "sample string 3"
}
];
var a1= [
{
"ID": 1,
"Name": "sample strin",
"ImgUrl": "sample stng 3"
},
{
"ID": 2,
"Name": "sample strin2",
"ImgUrl": "sample string 3"
},
{
"ID": 3,
"Name": "sample strin",
"ImgUrl": "sample stng 3"
},
{
"ID": 4,
"Name": "sample strin2",
"ImgUrl": "sample string 3"
},
{
"ID": 5,
"Name": "sample strin",
"ImgUrl": "sample stng 3"
},
{
"ID": 6,
"Name": "sample strin2",
"ImgUrl": "sample string 3"
}
]