“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
webman-路由-路由参数
发布时间:2022-01-19 22:31:24作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
在config/route.php配置如use Webman\Route;Route::any('/testclass/{id}', [app\controller\Foo::class, 'index']);在\app\controller\Foo.php中实现如:<?phpnamespace ap
阅读全文>>webman-路由-路由参数 - 更多例子
发布时间:2022-01-19 22:30:33作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
路由配置于config/route.php:仅匹配数字类型参数<?php/** * This file is part of webman. * * Licensed under The MIT License * For full copyright and license inform
阅读全文>>webman-路由-处理404
发布时间:2022-01-19 22:29:50作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
控制器\app\controller\Foo.php编码如:<?phpnamespace app\controller;use support\Request;class Foo{ /** * 该方法会在请求前调用 */ public function bef
阅读全文>>webman-路由-url生成
发布时间:2022-01-19 22:29:20作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
config/route.php编码如:<?php/** * This file is part of webman. * * Licensed under The MIT License * For full copyright and license information, please see the M
阅读全文>>lodash神奇妙用,實現前端數據分組按字段分組 js分組
发布时间:2022-01-19 22:24:55作者:雪饮
![[!--pagekey--]](/d/file/manshenghuo/chengxurensheng/460b8ca1d36782266521d999bf4e9903.png)
有時候像是一些不太重要的數據,比如只是展示信息而已,若能讓前端自己處理分組,而後端不進行mysql分組,則後端響應是極快的。那麽前端分組可以使用一個js庫叫做lodash具體實現如
阅读全文>>