详细说明:
可以实现简单的分页功能,显示前十页,后十页if($page<10) { // echo"$totalpage | "; for($j=1;$j<$page;$j++) { echo"
". "["."$j"."] "." | "; } } else { for($j=$page-10;$j<$page;$j++) { echo "
". "["."$j"."] "." | "; } } if($page<$totalpage-10) { for($j=$page;$j&l t;$page+11;$j++) { echo "
". "["."$j"."] "." | "; } } else { for($j=$page;$j<$totalpage+1;$j++) { echo "
". "["."$j"."]"." | "; } } ...展开收缩