网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
if ($this->lastPage < $window + 6) {
$block[‘first’] = $this->getUrlRange(1, $this->lastPage);
} elseif ($this->currentPage <= $window) {
$block[‘first’] = $this->getUrlRange(1, $window + 2);
$block[‘last’] = t h i s − > g e t U r l R a n g e ( this->getUrlRange( this−>getUrlRange(this->lastPage - 1, $this->lastPage);
} elseif ( t h i s − > c u r r e n t P a g e > ( this->currentPage > ( this−>currentPage>(this->lastPage - $window)) {
$block[‘first’] = $this->getUrlRange(1, 2);
$block[‘last’] = t h i s − > g e t U r l R a n g e ( this->getUrlRange( this−>getUrlRange(this->lastPage - ($window + 2), $this->lastPage);
} else {
$block[‘first’] = $this->getUrlRange(1, 2);
$block[‘slider’] = t h i s − > g e t U r l R a n g e ( this->getUrlRange( this−>getUrlRange(this->currentPage - $side, $this->currentPage + $side);
$block[‘last’] = t h i s − > g e t U r l R a n g e ( this->getUrlRange( this−>getUrlRange(this->lastPage - 1, $this->lastPage);
}
$html = ‘’;
if (is_array($block[‘first’])) {
$html .= t h i s − > g e t U r l L i n k s ( this->getUrlLinks( this−>getUrlLinks(block[‘first’]);
}
if (is_array($block[‘slider’])) {
$html .= $this->getDots();
$html .= t h i s − > g e t U r l L i n k s ( this->getUrlLinks( this−>getUrlLinks(block[‘slider’]);
}
if (is_array($block[‘last’])) {
$html .= $this->getDots();
$html .= t h i s − > g e t U r l L i n k s ( this->getUrlLinks( this−>getUrlLinks(block[‘last’]);
}
return $html;
}
/**
-
渲染分页html
-
@return mixed
*/
public function render()
{
if ($this->hasPages()) {
if ($this->simple) {
return sprintf(
‘%s
$this->css(),
$this->prev(),
$this->getLinks(),
$this->next()
);
} else {
return sprintf(
‘%s
$this->css(),
$this->home(),
$this->prev(),
$this->getLinks(),
$this->next(),
$this->last(),
$this->info(),
$this->js()
);
}
}
}
/**
-
生成一个可点击的按钮
-
@param string $url
-
@param int $page
-
@return string
*/
protected function getAvailablePageWrapper($url, $page)
{
return ‘
page.addEventListener(“change”, function() { var _index = this.selectedIndex; var size = this.options[_index].value; var url=“‘.$this->url(1).’”; if(url.indexOf(“&size”) !=-1) { var index=url.lastIndexOf(“&size”); url=url.substring(0,index); } url+=“&size=”+size; window.location.href=url}); function gotoPage(){ var input=document.getElementById(“pageInput”); var url=“‘.$this->url(1).’”; if(url.indexOf(“&page”) !=-1) { var index=url.lastIndexOf(“&page”); url=url.substring(0,index); } url+=“&page=”+input.value; window.location.href=url } '; } /** */ protected function css(){ return ’ .page-box, .page-box * { text-align:center; box-sizing: content-box; } .pagination p{ margin:0; cursor:pointer } .pagination{ height:40px; padding:20px 0px; } .pagination a{ display:block; float:left; margin-right:10px; padding:2px 12px; height:24px; border:1px #cccccc solid; background:#fff; text-decoration:none; color:#808080; font-size:12px; line-height:24px; } .pagination a:hover{ color:#077ee3; background: white; border:1px #077ee3 solid; } .pagination a.cur{ border:none; background:#077ee3; color:#fff; } .pagination p{ float:left; padding:2px 12px; font-size:12px; height:24px; line-height:24px; color:#bbb; margin-right:8px; } .pagination p.disabled{ border:1px #ccc solid; background:#fcfcfc; cursor:not-allowed; } .pagination p.pageRemark{ display:block; margin-right:10px; font-size:14px; padding:4px 0px; color:#666; } /屏幕宽度小于992px时/ @media all and (max-width: 992px) { .pagination p.pageRemark{ display: none; } } .pagination p.pageRemark b{ color:red; } .pagination p select{ font-size:12px; margin: 0 5px; padding: 0 10px; text-align: center; height: 28px; line-height: 28px; border: 1px solid #e2e2e2; border-radius: 2px; vertical-align: top; background-color: #fff; box-sizing: border-box; } .pagination p.pageEllipsis{ border-style:none; background:none; padding:4px 0px; color:#808080; cursor: not-allowed; } .dates li {font-size: 14px;margin:20px 0} .dates li span{float:right} .page-input{ display: inline-block; width: 40px; margin: 0 5px; padding: 0 5px; text-align: center; height: 28px; line-height: 28px; border: 1px solid #e2e2e2; border-radius: 2px; vertical-align: top; background-color: #fff; box-sizing: border-box; } .page-btn{ font-size:12px; margin: 0 5px; padding: 0 10px; text-align: center;
对于程序员来说,要学习的知识内容、技术有太多太多,要想不被环境淘汰就只有不断提升自己,从来都是我们去适应环境,而不是环境来适应我们!
最后,我再重复一次,如果你想成为一个优秀的 Android 开发人员,请集中精力,对基础和重要的事情做深度研究。
对于很多初中级Android工程师而言,想要提升技能,往往是自己摸索成长,不成体系的学习效果低效漫长且无助。整理的这些架构技术希望对Android开发的朋友们有所参考以及少走弯路,本文的重点是你有没有收获与成长,其余的都不重要,希望读者们能谨记这一点。
为了大家能够顺利进阶中高级、架构师,我特地为大家准备了一套高手学习的源码和框架视频等精品Android架构师教程,保证你学了以后保证薪资上升一个台阶。
以下是今天给大家分享的一些独家干货:
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
后,我再重复一次,如果你想成为一个优秀的 Android 开发人员,请集中精力,对基础和重要的事情做深度研究。
对于很多初中级Android工程师而言,想要提升技能,往往是自己摸索成长,不成体系的学习效果低效漫长且无助。整理的这些架构技术希望对Android开发的朋友们有所参考以及少走弯路,本文的重点是你有没有收获与成长,其余的都不重要,希望读者们能谨记这一点。
为了大家能够顺利进阶中高级、架构师,我特地为大家准备了一套高手学习的源码和框架视频等精品Android架构师教程,保证你学了以后保证薪资上升一个台阶。
以下是今天给大家分享的一些独家干货:
[外链图片转存中…(img-yUxLMxih-1715750169012)]
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!