上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 59 下一页
摘要: 一,查询 引入名字空间 use App\Book; Book::get() Book::find(1) 二,修改 Book->save() 方法 三,删除 Book->delete() 四,增加 Book->create([ 'name'=>'222', ]) 阅读全文
posted @ 2023-03-11 23:09 学无边涯 阅读(29) 评论(0) 推荐(0)
摘要: 一,php artisan make:migration add_number_to_test_table --table=test 二 php artisan migrate 阅读全文
posted @ 2023-03-09 23:00 学无边涯 阅读(68) 评论(0) 推荐(0)
摘要: 一,php artisan make:magration create_test_table 命令行 字段如何设置 二,php artisan migrate 命令行 如果出现错误 就添加两行代码 最后成功了 阅读全文
posted @ 2023-03-09 22:12 学无边涯 阅读(67) 评论(0) 推荐(0)
摘要: 一,路由文件 文章来自 www.96net.com.cn 阅读全文
posted @ 2023-03-08 21:24 学无边涯 阅读(19) 评论(0) 推荐(0)
摘要: 把 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !- 阅读全文
posted @ 2023-03-01 21:59 学无边涯 阅读(122) 评论(0) 推荐(0)
摘要: 第一,原始方法 use think\Model; 使用use $user=news User() 缺点,使用一个都要引入在实例化 第二,依赖注入 也要引入use use think\Request; public function test1(Request $request){ var_dump( 阅读全文
posted @ 2023-02-13 00:20 学无边涯 阅读(131) 评论(0) 推荐(0)
摘要: 第一,下载 下载地址 https://www.capcut.cn/ 第二,剪映安装 安装完毕后,开始创作 导入视频 第三,讲视频按住拖到时间抽位置 文章来自 www.96net.com.cn 阅读全文
posted @ 2023-02-05 20:03 学无边涯 阅读(653) 评论(0) 推荐(0)
摘要: 一,C:\phpStudy\PHPTutorial\WWW\tp51\thinkphp\library\think 二,App.php文件 /** * 获取应用类库目录 * @access public * @return string */ public function getAppPath() 阅读全文
posted @ 2023-01-29 13:32 学无边涯 阅读(115) 评论(1) 推荐(0)
摘要: 1.配置格式 return [ 'name'=>'', 'age'=>'', ]; 2、配置的形式 1、惯例配置 a、惯例配置目录 C:\AppServ\www\tp5\thinkphp\convention.php b、注意: 大家一般不要修改惯例配置 2、应用配置 a、应用配置目录 C:\App 阅读全文
posted @ 2023-01-12 14:39 学无边涯 阅读(84) 评论(0) 推荐(0)
摘要: <script> export default { data(){ return{ message:0, put1:'96net.com.cn', } }, methods:{ dianji(p,event){ console.log(p); console.log(event); } } } </ 阅读全文
posted @ 2022-10-16 20:25 学无边涯 阅读(84) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 59 下一页