1、变量提升问题

<script>
    var num=10;
    fun();
    function fun(){
      console.log(num);
      var num=20;
    }
</script>    
View Code

相关文章:

  • 2022-01-05
  • 2022-12-23
  • 2021-08-30
  • 2022-01-03
猜你喜欢
  • 2021-11-13
  • 2021-05-22
  • 2022-02-19
相关资源
相似解决方案