yii2 ActiveDataProvider 获取总页数

$list = $provider->getModels();
$total = $provider->getTotalCount();
$pageCount = $provider->getPagination()->getPageCount();

此处评论已关闭