yantianqi
V2EX  ›  问与答

vue 声明周期钩子函数 mounted,页面渲染了吗

  •  
  •   yantianqi · May 31, 2017 · 2579 views
    This topic created in 3455 days ago, the information mentioned may be changed or developed.

    如果在 mounted 中运行一个 alert,弹窗前页面没有数据,弹窗后页面有了数据
    mounted 是页面什么时候?

    2 replies  •  2017-05-31 22:56:03 +08:00
    SourceMan
    SourceMan
    May 31, 2017 via iPhone
    1
    不是今天有人问了吗?
    迁移指南有说到这事
    用 vm.$nextTick 确保下
    airyland
    airyland
    May 31, 2017 via iPhone
    2
    你今天问过一次了,别老问能搜到的问题,这是 spam
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4412 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 08:30 · PVG 16:30 · LAX 00:30 · JFK 03:30
    ♥ Do have faith in what you're doing.