摘要:
0 ? intval($_GET['page']) : 1;$start = ($page - 1) * $perpage;$datalist = array_slice($newarr, $start, $perpage);var_dump($datalist);$mpurl = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $_SERVER['SCRIPT_NAME'] . '?word=' . urlencode($word);// 复杂点的分页echo 阅读全文