vue設定タイミング実行関数
1088 ワード
var app = new Vue({
el: '#app',
data: {
},
filters: {
},
created: function () {
setInterval(this.timer, 1000);
},
methods: {
timer: function () {
console.log("time");
}
},
watch: {
},
computed: {
}
});