我这里使用的Laravel版本是5.6,路由位置在routes/web.php中,所以我们在这个文件中添加我们想要添加的路由。 1.基础路由 ? 1 2 3 4 5 6 7 8 //get请求,结果如下图 Route::get('basic1',function (){ return 'Hello ...
分类:
其他好文 时间:
2019-09-10 22:09:56
阅读次数:
140
分离解析的域名服务器,实际上也还是主域名服务器,这里所说的分离解析,主要是指根据不同的客户端,提供不同的域名解析记录。来自不同地址的客户机请求解析同一域名时,为其提供不同的解析结果。
分类:
其他好文 时间:
2019-09-08 22:44:45
阅读次数:
133
laravel的每个操作都要写一个路由 laravel的路由要写在routes里的web.php 代码如下 view 如果 ...
分类:
其他好文 时间:
2019-09-07 10:53:58
阅读次数:
68
0901自我总结 Vue CLI项目路由案例汇总 router.js components/Nav.vue views/Course.vue components/CourseCard.vue vue <! 逻辑跳转 {{ card.title }} <! 链接跳转 <! 第一种 <! <route ...
分类:
其他好文 时间:
2019-09-01 19:05:33
阅读次数:
81
Vue的router默认是 export default new Router({ mode: 'history', routes: [ { path: '/', name: 'HelloWorld', component: HelloWorld } ] }) 有的时候我们为了实现更多的功能,需要在 ...
分类:
其他好文 时间:
2019-09-01 14:47:47
阅读次数:
93
We can easily code split and lazy load a route in Angular. However when the user then clicks that lazy loaded route, it make some time to actually fet ...
分类:
其他好文 时间:
2019-08-27 19:06:46
阅读次数:
85
1 网络相关的几个文件说明 1.1 网卡配置文件ifcfg 在/etc/sysconfig/network scripts/目录下有不少文件,绝大部分都是脚本类的文件,但有一类 ifcfg开头 的文件为网卡配置文件(interface config),所有ifcfg开头的文件在启动网络服务的时候都会 ...
分类:
系统相关 时间:
2019-08-25 00:51:47
阅读次数:
172
1. SPA是什么 单页Web应用(single page application,SPA),就是只有一个Web页面的应用, 是加载单个HTML页面,并在用户与应用程序交互时动态更新该页面的Web应用程序 单页面应用程序: 只有第一次会加载页面, 以后的每次请求, 仅仅是获取必要的数据.然后, 由页 ...
分类:
其他好文 时间:
2019-08-24 20:50:12
阅读次数:
87
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "... ...
分类:
其他好文 时间:
2019-08-23 14:55:07
阅读次数:
168
Vue-router 动态路由匹配 Vue-router 动态路由匹配 Vue-router 动态路由匹配 路由参数变化 举例: const router = new VueRouter({ routes: [ // 动态路径参数 以冒号开头, /user/foo 和 /user/bar 都将映射到 ...
分类:
其他好文 时间:
2019-08-21 23:05:17
阅读次数:
292