欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

数据的截取 和等比分成

程序员文章站 2022-06-01 13:11:17
...

数据的截取 和等比分成

 this.Dept_top = res.data;
          var num = Math.ceil(this.Dept_top.length / 3);
          this.p_ming = this.Dept_top.slice(0, num);
          this.p_ming_all = this.p_ming.length;
          this.p_ming_two = this.Dept_top.slice(num, num + num);
          this.p_ming_two_all = this.p_ming_all + this.p_ming_two.length;
          this.p_ming_three = this.Dept_top.slice(num + num);

数据的截取 和等比分成

相关标签: 小组件 js