爱意满满的作品展示区。
rockjike

用 console.log 分析 vue 源码

  •  2
     
  •   rockjike · Dec 20, 2018 · 4176 views
    This topic created in 2783 days ago, the information mentioned may be changed or developed.

    通过console.log的一些特性,结合vue.js的源码,通过一个简单的例子,让你了解Vue的各个过程的变化.
    控制台输出的效果图

    image

    请用 chrome 查看,并打开控制台看效果 演示地址

    源码 github 欢迎 star

    9 replies    2018-12-21 14:36:25 +08:00
    TomatoYuyuko
        1
    TomatoYuyuko  
       Dec 20, 2018
    很强。。。控制台才是最实用的教学工具
    Alexisused
        2
    Alexisused  
       Dec 20, 2018
    厉害
    codermagefox
        3
    codermagefox  
       Dec 21, 2018
    这个思路很棒啊,已 star
    mrcode
        4
    mrcode  
       Dec 21, 2018
    很🐂🍺,天马行空的想法,但是却很有意义,感谢
    antowa
        5
    antowa  
       Dec 21, 2018
    看源码还需要打印??
    rockjike
        6
    rockjike  
    OP
       Dec 21, 2018
    感谢大家🙏
    rockjike
        7
    rockjike  
    OP
       Dec 21, 2018
    @antowa 可以看到某些时刻的变量状态, 比如虚拟 dom 具体是什么样的,主要是帮助理解
    zzxCNCZ
        8
    zzxCNCZ  
       Dec 21, 2018
    666,很有想法啊小伙子
    kirisakiaria
        9
    kirisakiaria  
       Dec 21, 2018
    感谢分享
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3916 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 00:47 · PVG 08:47 · LAX 17:47 · JFK 20:47
    ♥ Do have faith in what you're doing.