如何在vue.js渲染完界面之后调用一个函数

如题所述

可以在mounted中调用

    mounted: function () {
        this.$nextTick(function () {
            // Code that will run only after the
            // entire view has been rendered
        })
    }

温馨提示:答案为网友推荐,仅供参考
相似回答