vue 设置定时执行函数
var app = new Vue({el: '#app',data: {},filters: {},created: function () {setInterval(this.timer, 1000);...
·
var app = new Vue({ el: '#app', data: { }, filters: { }, created: function () { setInterval(this.timer, 1000); }, methods: { timer: function () { console.log("time"); } }, watch: { }, computed: { } });
更多推荐
已为社区贡献28条内容
所有评论(0)