小白兔晒黑了

导航

 
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页

2020年7月16日

摘要: 1 导入扩展库 项目地址 https://github.com/happyHou/laravel_form 阅读全文
posted @ 2020-07-16 22:08 小白兔晒黑了 阅读(148) 评论(0) 推荐(0) 编辑
 
摘要: 中间件的作用: 过滤进入应用程序的http请求。 比如,有一个活动,在活动开始前进入活动页则跳转到宣传页 使用步骤: 1 创建中间件 \app\Http\Middleware\Activity.php php artisan make:middleware Activity <?php namesp 阅读全文
posted @ 2020-07-16 17:13 小白兔晒黑了 阅读(2235) 评论(0) 推荐(0) 编辑
 

2020年7月14日

摘要: 三个方法:url() 、action()、route() 都可以跳转 1 路由设置 \routes\web.php Route::any('url',['as'=>'url','uses'=>'StudentController@urlTest']); 2 添加action \app\Http\Co 阅读全文
posted @ 2020-07-14 20:33 小白兔晒黑了 阅读(504) 评论(0) 推荐(0) 编辑
 
摘要: 文件目录结构 父模板 \resources\views\student\section1.blade.php @section('content') content <!-- 1 模板中输出php变量--> <p>{{$name}}</p> <!-- 2 模板中调用php代码--> <p>{{ ti 阅读全文
posted @ 2020-07-14 18:05 小白兔晒黑了 阅读(860) 评论(0) 推荐(0) 编辑
 
摘要: 将整个页面划分成不同的模块, 代码部署: \routes\web.php Route::get('section1',['uses'=>'StudentController@section1']); \app\Http\Controllers\StudentController.php //模板继承 阅读全文
posted @ 2020-07-14 17:10 小白兔晒黑了 阅读(492) 评论(0) 推荐(0) 编辑
 
摘要: 1 路由 \routes\web.php <?php use Illuminate\Support\Facades\Route; /* | | Web Routes | | | Here is where you can register web routes for your applicatio 阅读全文
posted @ 2020-07-14 07:57 小白兔晒黑了 阅读(242) 评论(0) 推荐(0) 编辑
 

2020年7月10日

摘要: 1 修改成国内镜像 由于众所周知的原因,我们第一步是把composer修改成国内的镜像 composer config -g repo.packagist composer https://packagist.phpcomposer.com #阿里云的composer镜像源 composer con 阅读全文
posted @ 2020-07-10 21:41 小白兔晒黑了 阅读(283) 评论(0) 推荐(0) 编辑
 
摘要: 给路径起别名 在根目录添加vue.config.js文件 module.exports = { configureWebpack: { resolve: { alias: { 'assets': '@/assets', 'common': '@/common', 'components': '@/c 阅读全文
posted @ 2020-07-10 20:32 小白兔晒黑了 阅读(242) 评论(0) 推荐(0) 编辑
 
摘要: 1 创建仓库 2 把项目和远程仓库联系起来在 方法一: 2.1 在本地执行clone git clone https://github.com/jialuoxi/supermall.git 2.2 将本地代码复制到clone出来的文件夹下 (.git隐藏文件夹不要复制) 2.3 按照 https:/ 阅读全文
posted @ 2020-07-10 14:43 小白兔晒黑了 阅读(130) 评论(0) 推荐(0) 编辑
 
摘要: src\network\request.js import axios from 'axios' //创建一个叫request的实例 export function request(config) { //1 创建实例 const instance = axios.create({ baseURL: 阅读全文
posted @ 2020-07-10 00:39 小白兔晒黑了 阅读(187) 评论(0) 推荐(0) 编辑
 
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页