javascript-词法分析解析

Posted 狼来的日子里!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript-词法分析解析相关的知识,希望对你有一定的参考价值。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    #main{
        background-color: red;
        width:300px;
        height:400px;
    }
    #content{
        background-color: pink;
        width:150px;
        height:200px;
    }
</style>
<body>


    <script>
          function t1(){
              console.log(name);
              var name = "alex";
          }
          t1();
//        function t1(age){
//            console.log(age); // function age()
//            var age = 27;
//            console.log(age); // 27
//            function age(){}
//            console.log(age); // 27
//        }
//
//        t1(3);


    </script>


</body>
</html>

以上是关于javascript-词法分析解析的主要内容,如果未能解决你的问题,请参考以下文章