首页 > 编程语言 > 详细

javascript-词法分析解析

时间:2017-10-01 17:23:59      阅读:252      评论:0      收藏:0      [点我收藏+]
<!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-词法分析解析

原文:http://www.cnblogs.com/lixiang1013/p/7617397.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!