Title 首页 用户登录 帖子管理 A var routes = [ { path: "/", component: { template: ` ... ...
分类:
其他好文 时间:
2018-01-31 00:50:42
阅读次数:
158
Title 首页 关于我们 翠花 王老五 var routes = [ { path:"/", component:{ template:` ... ...
分类:
其他好文 时间:
2018-01-30 23:07:06
阅读次数:
214
Title 首页 关于我们 var routes = [ { path:"/", component:{ template:` 首页 ` ... ...
分类:
其他好文 时间:
2018-01-30 22:56:35
阅读次数:
210
1、对MVC的认识 1、启动项在Global.asax.cs文件中,RouteConfig.RegisterRoutes(RouteTable.Routes);定义路由事件,可以设置启动项【默认是Home/Index】; 2、Views/Home/Index.cshtml文件是页面内容,在@.... ...
分类:
Web程序 时间:
2018-01-30 12:26:12
阅读次数:
260
[toc] 我们知道针对客户端的请求,最终都会转换为对 Controller 中的一个 Action 方法的调用,指定的 Action 方法会返回一个 ActionResult 类型的实例来响应该请求,但 ActionResult 类型的实例是如何转换为请求终端最终呈现的页面的呢?这就是我们这里要介 ...
分类:
Web程序 时间:
2018-01-28 20:00:02
阅读次数:
257
参考于:https://www.toutiao.com/i6498668846843429390 以下为几点心得 Nginx 1.linux 源码编译zlib时需要gcc环境 Tomcat 1.不同的tomcat有三处端口需要修改 2.tomcat配置集群时,只需在<Engine>标签内添加 2.w ...
分类:
其他好文 时间:
2018-01-28 15:33:51
阅读次数:
161
在router.js中修改, const router = new VueRouter({ mode: 'history', routes: [...] }) ...
分类:
其他好文 时间:
2018-01-27 17:12:53
阅读次数:
192
这个项目除了最基本的MVC,routes和之前讲过的ServiceProvider(服务商)依赖注入,还有Action (动作) 、Repositories(仓储)等... 先讲一下仓储吧, 一般JAVA和C#在M层和C层之间会有一个仓储层做连接,C层直接调用仓储层,然后由仓储层调用model层的方 ...
分类:
其他好文 时间:
2018-01-27 13:39:42
阅读次数:
174
1. 在项目routes/web.php文件中添加了自定义的路由后,访问laravel.test.cn/index.php/list (虚拟域名详情见配置),可以正常访问,但是去掉index.php后,提示404 Not Found 2. 按照Laravel 5.5 文档Pretty URLs章节, ...
分类:
Web程序 时间:
2018-01-13 01:19:36
阅读次数:
206
MapRoute( string name, 名称 string url,URL 模式 object defaults, 默认值 object constraints, 约束(用正则表达式) string[] namespaces 命名空间 ) 如果一个URL能够在多个路由中匹配,则默认使用第一个匹 ...
分类:
其他好文 时间:
2018-01-09 21:16:22
阅读次数:
2236