📅  最后修改于: 2022-03-11 15:02:43.993000             🧑  作者: Mango
var f;
var filteredElements = data.filter(function(item, index) { f = index; return item.id == removeId; });
if (!filteredElements.length) {
return false;
}
data.splice(f, 1);