2019-06-21

2019-06-21  本文已影响0人  divine_zhouo
 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()
上一篇 下一篇

猜你喜欢

热点阅读