arr = arr.filter(item => !(/^test|^System/i.test(item.ServiceID)))
雷雷
用Array.filter方法,将过滤后的数组赋值回arr;
Array.filter
arr
arr = arr.filter(function(item) { return !(/^(test|System)/g.test(item.ServiceId || '')); });
arr = arr.filter(item => !(/^test|^System/i.test(item.ServiceID)))
雷雷
用
Array.filter
方法,将过滤后的数组赋值回arr
;