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

用 console.log 分析 vue 源码

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