var arr = [1, 2, 3, 4, 5];
var valueToRemove = 3;
 
// 方法1: 使用$.grep()方法
arr = $.grep(arr, function(value) {
  return value != valueToRemove;
});
console.log(arr); // [1, 2, 4, 5]
 
// 方法2: 使用Array.prototype.filter()方法 (纯JavaScript)
arr = arr.filter(function(value) {
  return value != valueToRemove;
});
console.log(arr); // [1, 2, 4, 5]
var newJson=[{"Id":"a","BillDate":"2024-05-09","Title":"户外"},{"Id":"b","BillDate":"2024-05-05","Title":"墙面"},{"Id":"c","BillDate":"2024-04-30","Title":"制作"}]
var json = $.grep(newJson, function (item) { return item.Id != 'b'; });
console.log(json); //[{"Id":"a","BillDate":"2024-05-09","Title":"户外"},{"Id":"c","BillDate":"2024-04-30","Title":"制作"}]