其他分享
首页 > 其他分享> > Vue.js知识点汇集

Vue.js知识点汇集

作者:互联网

1.页面传值:

源页面:

 showScreen(){
  let routeData = this.$router.resolve({path:'/company-show',query:{companyId:this.companyId,year:this.year}});
  window.open(routeData.href, '_blank');
 }

 

目标页面:

 mounted() {
      this.companyId = this.$route.query.companyId;
      this.year = this.$route.query.year;
    },

2.定时器:

 mounted() {
     this.timer=setInterval(this.loadIndustryOrderChart,30000);
    },
beforeDestroy(){
clearInterval(this.timer);
}
 

3.引入echarts

const echarts = require('echarts')

 

标签:知识点,Vue,companyId,js,year,query,mounted,echarts,页面
来源: https://www.cnblogs.com/jizhong/p/13114556.html