“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
webman-请求-判断是否是pjax请求(及pjax的应用实例)直接加载整个页面是有问题的
发布时间:2022-01-18 22:14:51作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
后端实现:<?phpnamespace app\controller;use support\Request;class User{ public function hello(Request $request) { $arr["Pjax"]=$request->isPjax();
阅读全文>>webman-响应-返回任意响应(通过响应设置cookie覆写前端cookie、设置响应头,追加设置响应头、设置响应体(响应内容))
发布时间:2022-01-18 22:12:45作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
实例<?phpnamespace app\controller;use support\Request;class User{ public function hello(Request $request) { // 创建一个对象 $response = res
阅读全文>>webman-响应-重定向
发布时间:2022-01-18 22:11:40作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
实例<?phpnamespace app\controller;use support\Request;class User{ public function index(){ return response("你访问的是user/index !"); } public
阅读全文>>webman-响应-返回xml及xml前端解析
发布时间:2022-01-18 22:10:22作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
实例<?phpnamespace app\controller;use support\Request;class User{ public function hello(Request $request) { $xml = <<<XML <?xml vers
阅读全文>>webman-响应-header设置
发布时间:2022-01-18 22:09:44作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
两种设置header实例:<?phpnamespace app\controller;use support\Request;class User{ public function headerSet1(Request $request) { return response('he
阅读全文>>