var arr = [ { ServiceID: 'go-storage-127.0.0.1-8080-9090', ServiceName: 'storage', }, { ServiceID: 'System-xxx-192.168.0.111-8000-8000', ServiceName: 'xxx', }, { ServiceID: 'System-xxx2-192.168.0.111-8000-8000', ServiceName: 'xxx2', }, { ServiceID: 'System-xxx3-192.168.0.111-8000-8000', ServiceName: 'xxx3', }, { ServiceID: 'System2-xxx3-192.168.0.111-8000-8000', ServiceName: 'xxx3', }, { ServiceID: 'test-xxx3-192.168.0.111-8000-8000', ServiceName: 'xxx3', }]; 將arr數(shù)組中ServiceID以test或者System開頭的數(shù)組元素刪掉 用刪掉的方法總是沒法講匹配到的全刪,哪位高手能幫個忙呢?謝謝!
js如何將匹配到的數(shù)組元素刪掉?
阿晨1998
2018-11-28 14:15:54