小白兔晒黑了

导航

 
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页

2020年7月14日

摘要: 文件目录结构 父模板 \resources\views\student\section1.blade.php @section('content') content <!-- 1 模板中输出php变量--> <p>{{$name}}</p> <!-- 2 模板中调用php代码--> <p>{{ ti 阅读全文
posted @ 2020-07-14 18:05 小白兔晒黑了 阅读(861) 评论(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 小白兔晒黑了 阅读(244) 评论(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 小白兔晒黑了 阅读(188) 评论(0) 推荐(0) 编辑
 

2020年7月9日

摘要: axios的实例应用 为什么要创建实例 在开发大型项目时,最好不要直接使用全局的axios,而是创建单独的实例 axios实例的创建和使用 import axios from 'axios' //创建axios实例 const instance1 = axios.create({ baseURL:' 阅读全文
posted @ 2020-07-09 15:36 小白兔晒黑了 阅读(443) 评论(0) 推荐(0) 编辑
 

2020年7月7日

摘要: 使用axios.all可以放入多个请求的数组。 //axios 发送并发请求 const a1 = axios({ url:'http://123.207.32.32:8000/home/multidata' }) const a2 = axios({ url:'/apis/ithil_j/acti 阅读全文
posted @ 2020-07-07 21:45 小白兔晒黑了 阅读(208) 评论(0) 推荐(0) 编辑
 

2020年7月6日

摘要: 使用axios时遇到问题 已拦截跨源请求:同源策略禁止读取位于 在本地调试访问远程服务器,就有跨域问题,下面以调用豆瓣接口为例: 解决办法 3.x 版本对整个项目的构建都有很大的改动,没有原先的config文件夹,没有dev.env.js和prod.dev.js,要自己在根目录建vue.config 阅读全文
posted @ 2020-07-06 23:04 小白兔晒黑了 阅读(333) 评论(0) 推荐(0) 编辑
 
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 28 下一页