edge瀏覽器屢次點擊圖片會出現陰影,這是用戶選擇的問題 es6
解決辦法:數組
user-select: none;
-ms-user-select: none;
es6
數組去重 Array.from(new Set(arr)) [...new Set(arr)]
數組對象去重
let hash = {}; //數組對象去重
list 原數組 去重name重複的
newArrr = list.reduceRight((item, next) => {
hash[next.name] ? '' : hash[next.name] = true && item.push(next);
return item
}, []);
element 框架
select 能夠用 :hidden=""來判斷是否隱藏選擇項