vue.js 渲染完成回调
2016-11-29 10:04 Easy C# 阅读(15400) 评论(1) 编辑 收藏 举报vue.js渲染完成后,想触发一些事情,写在哪里呢?
答案是mounted
例子:
new Vue({ el:\'#demo\', data:{ text:\'Hello\' }, mounted:function(){ alert(\'render complete\') } })
vue.js渲染完成后,想触发一些事情,写在哪里呢?
答案是mounted
例子:
new Vue({ el:\'#demo\', data:{ text:\'Hello\' }, mounted:function(){ alert(\'render complete\') } })
相关文章: