"JS 마법 효과의 일부"

1 : 비동기 비동기 콜백 (ES6)

async function test(){
       console.log("hello wolrd");
 }

 test().then(function(){
     console.log("回调测试")
 }); 

2 : 정렬 수면

var numbers=[1,2,3,4,5,5,99,4,20,11,200];
numbers.forEach((num)=>{
    setTimeout(()=>{
        console.log(num)
    },num)
})

3 : 빠른 디엠 퍼시스 (de-emphasis)   (ES6)

var arr = Array.from(new Set([1,2,3,4,4,3,5,6,7,8,8]));

 

컬렉션은 지속적으로 업데이트됩니다 ........

 

HTTPS : //www.cnblogs.com/Kummy/p/6782682.html 재현

추천

출처blog.csdn.net/weixin_33874713/article/details/93230328