具体是要把下面这个
var targets = [
{targetIds:[1],zone_id: 10000},
{targetIds:[2],zone_id: 10000},
{targetIds:[3],zone_id: 10001},
{targetIds:[4],zone_id: 10000}
]
变成这样:
var targets = [
{targetIds:[1,2,4],zone_id: 10000},
{targetIds:[3],zone_id: 10001}
]
要求是可以将多个zone_id对应的targetIds整合到一起
相关分类