循环a数组(值代表b的下标)删除b数组中存在的记录,从后往前删 for (var j = adelete.Count-1; j >= 0; --j) { aAttachment.RemoveAt(Common.ccint(adelete[j])); }