1.php
<?php
Header (' location:2.php '); Echo can't be in front of it
echo ' 1 ';
2.js
<?php
echo ' 2 ';
Echo ' <meta http-equiv= "Refresh" content= "10;url=1.php" > ";
3.js
<?php
echo ' 4 ';
echo "<script>location= ' 1.php ';</script>";
echo ' 3 ';
echo "<script>location.href= ' 1.php ';</script>"; Also OK
Back to previous page
echo "<script type=" Text/javascript ">history.back ();</script>";
Back to the last two pages
echo "<script type=" Text/javascript ">history.go ( -2);</script>";
$User = M (' User '); Instantiating a User object
$count = $User->where (' Status=1 ')->count ();//query satisfies the required total number of records
$Page = new \think\page ($count, 25);//Instantiate the total number of incoming records for the paging class and the number of records displayed per page (25)
$show = $Page->show ();//pagination display output//Paging data query Note the parameters of the Limit method use the properties of the Page class
$list = $User->where (' Status=1 ')->order (' Create_time ')->limit ($Page->firstrow. ', '. $Page->listrows )->select (); $this->assign (' list ', $list);//Assignment Data set
$this->assign (' page ', $show);//Assignment Paging output
$this->display (); Output template
Jump Page & Go to Previous page