let t=0;
for(var i=0;i<len;i++){
    (function (t) {
        $timeout(function(){
            console.log(t); 
        },t);

    })(t);
    t+=Math.sin(Math.PI/8/len*i)*1000;     //3 s
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-11-30
  • 2021-11-06
  • 2021-11-20
  • 2021-10-22
猜你喜欢
  • 2021-09-29
  • 2021-12-17
  • 2021-04-09
  • 2021-09-04
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
相关资源
相似解决方案