DEVJquery 实现从数组中删除指定的值Posted 6 years ago·563 Views·105 WordsERT 1 minvar arr = [1, 2, 3, 4, 5]; //原数组 var removeItem = 2; //要删除的值 arr = $.grep(arr, function(value) { return value != removeItem; });