标签:var settime reac class blog ons color log time
1: 沉睡排序
1 var numbers=[1,2,3,4,5,5,99,4,20,11,200]; 2 numbers.forEach((num)=>{ 3 setTimeout(()=>{ 4 console.log(num) 5 },num) 6 })
2: 快速去重 (ES6)
1 var arr = Array.from(new Set([1,2,3,4,4,3,5,6,7,8,8]));
标签:var settime reac class blog ons color log time
原文地址:http://www.cnblogs.com/shiweida/p/7675205.html