<html>
    <head>
        <title>
        test
        </title>
    </head>
    <body>
        <script type="text/javascript">
            (function (){
                //局部变量
                var a=1;
                var b=3;
                alert(a+b);
            })();
            //undefinded
            alert(a);
        </script>
    </body>
</html>

 

相关文章:

  • 2022-12-23
  • 2020-07-20
  • 2021-06-01
  • 2021-12-11
  • 2021-11-12
  • 2022-02-18
猜你喜欢
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-10-23
  • 2021-05-20
相关资源
相似解决方案