//下一页
nextPage() {
//如果已经在最后一页,点击按钮页码不变并弹出提示
if (this.selected == this.pageCount - 1) {
this.selected;
alert(‘已是最后一页!’);
} else {
//否则当前页数+1
this.selected = this.selected + 1;
}
}
}
}
//下一页
nextPage() {
//如果已经在最后一页,点击按钮页码不变并弹出提示
if (this.selected == this.pageCount - 1) {
this.selected;
alert(‘已是最后一页!’);
} else {
//否则当前页数+1
this.selected = this.selected + 1;
}
}
}
}