var app = new Vue({
        el: '#app',
        data: {
            count: 1,
        },
        filters: {
         
        },
        mounted: function () {
            this.$nextTick(function () {
                setInterval(this.timer, 1000);
            })
        },
        methods: {
         timer: function () {
                if (this.count > 0) {
                    this.count++;
                }
            }
        },
        watch: {

        },
        computed: {

        }
    });

 

相关文章:

  • 2021-12-24
  • 2021-12-19
  • 2022-12-23
  • 2021-08-23
  • 2022-01-02
  • 2021-12-10
  • 2022-12-23
  • 2021-04-22
猜你喜欢
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-07-16
  • 2021-07-12
  • 2021-12-27
相关资源
相似解决方案