摘要: ThinkPHP6.0升级后 使用查询构造器和模型都没有了提示 原因是tp6源码中没有添加注释 找到Model.php 添加 * @method Query where(mixed $field, string $op = null, mixed $condition = null) static 阅读全文
posted @ 2022-03-18 18:56 cmooc 阅读(306) 评论(0) 推荐(1) 编辑
摘要: js常用小代码 1.选中文本复制内容 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <input type="text" id="txt"> doc 阅读全文
posted @ 2022-03-18 18:51 cmooc 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 下载PHPexcel https://files.cnblogs.com/files/itzhangxuhui/PHPExcel.zip PHP生成Excel include_once "./lib/PHPExcel.php"; //实例化PHPExcel类,类似于在桌面上新建一个Excel表格 $ 阅读全文
posted @ 2022-03-18 18:47 cmooc 阅读(96) 评论(0) 推荐(0) 编辑
摘要: htaccess如何配置隐藏index.php文件 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCon 阅读全文
posted @ 2022-03-18 18:42 cmooc 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 中间件代码 $request->attributes->add(['username'=>$username]); $requset->merge(['username'=>$username]); return $next($request) 控制器代码 return view('index',[ 阅读全文
posted @ 2022-03-18 18:34 cmooc 阅读(28) 评论(0) 推荐(0) 编辑