Array.from(new Set(array)); [].slice.call(new Set(array)); 转载于:https://www.cnblogs.com/triz/p/9604004.html