vue 生命周期

vueLife = {
    vmCreated: function() {
        logMessage("vmCreated"),
        resetState(),
        initView(),
        $("#loading").hide(),
        $(".main").show(),
        appData.isShowErweima = !1
    },
    vmUpdated: function() {
        logMessage("vmUpdated")
    },
    vmMounted: function() {
        logMessage("vmMounted"),
        $("#marquee").marquee({
            duration: globalData.notySpeed,
            gap: 50,
            delayBeforeStart: 0,
            direction: "left",
            duplicated: !0
        })
    },
    vmDestroyed: function() {
        logMessage("vmDestroyed")
    }
},




参考

posted @ 2017-10-12 21:57  hopher  阅读(184)  评论(0编辑  收藏  举报