(1)递归:函数自身调用自身

    1. <script>
    2. function show(){
    3. setTimeout(function(){
    4. console.log(1);
    5. show();
    6. },1000)
    7. }
    8. show();
    9. </script>