laravel 簡單分頁如何解決?
PHPz
PHPz 2017-05-16 16:55:05
0
1
412

一點選分頁連線

http://127.0.0.1/demo/public/index.php/?page=1

發現demo沒有了

http://127.0.0.1/public/index.php/?page=2  

是因為路由寫的不對嗎?預設路由:

Route::get('/', 'indexController@index');

後來路由增加了

Route::get('?page={id}', function($id)
{
    
});

就解決了 這種寫法沒影響吧?

PHPz
PHPz

学习是最好的投资!

全部回覆(1)
为情所困

用 php artisan serve 方式啟動專案。

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板