美文网首页
2019-06-21

2019-06-21

作者: divine_zhouo | 来源:发表于2019-06-21 11:18 被阅读0次
     var a = 1
          function fn1 () {
            function fn3 () {
              function fn2 () {
                console.log(a)
              }
              fn2()
              var a = 4
            }
            var a = 2
            return fn3
          }
          var fn = fn1()
          fn()
    
          var a = 1
          function fn1 () {
            function fn2 () {
            console.log(a)
            }
            function fn3 () {
              fn2()
              var a = 4
            }
            var a = 2
            return fn3
          }
          var fn = fn1()
          fn()
    

    相关文章

      网友评论

          本文标题:2019-06-21

          本文链接:https://www.haomeiwen.com/subject/amxyqctx.html