代码:
var count =5;
var minPage=1;
var Next =this.elementRef.nativeElement.querySelectorAll(".ant-pagination-item a");
//ajaxTable
this.interval=setInterval(()=>{
if(minPage>4){
minPage=1;
//Next[1].click();
}
if(count<1){
count=5;
Next[minPage].click(); //Once Click page index, need to continue too click all index (example 1 to 10 repeatedly)
minPage++;
}
count--;
document.getElementById("displayAutoCount").innerHTML = count+"";
},1000);
答案 0 :(得分:0)
尝试使用on-select-page或ngchange事件