数组去重 方法1 //假设 arr是一个数组对象 arr=Array(new Set(arr)); 原理:set对象是一个每一个值都唯一的对象,通过Array=>Set去重,在通过Set=>Array恢复为数组对象