1、// 命名的路由 router.push({ name: 'user', params: { userId: 123 }}) ps:params这样的传参前面只能是name 2、// 带查询参数,变成 /register?plan=private router.push({ path: 'reg ...
分类:
其他好文 时间:
2017-09-21 19:39:12
阅读次数:
128
We have express app: As you can see, we wrap Express App into a function 'startServer' and export it as default export. The return value of this funct ...
分类:
其他好文 时间:
2017-09-20 00:56:06
阅读次数:
159
pageAninmate vue-router实现webApp切换效果 演示效果 快速集成 1.复制PageTransittion.vue到项目目录。 2.修改router配置。 方案实现 记录页面状态 要实现页面前进后台动画,首先必须知道页面状态(即是页面是进入下一页,还是后退),我们可以通过改写 ...
分类:
移动开发 时间:
2017-09-14 16:58:07
阅读次数:
372
一、测试环境 类型 IP 负载均衡器 eth0:10.20.73.20 VIP eth0:0 10.20.73.29 后端真实机 10.0.0.7(web01)、10.0.0.9(web02) 二、异常现象 在client上ping VIP是通的,但是访问服务的时候却发现不通。 DR上所有连接都为S ...
分类:
其他好文 时间:
2017-09-10 11:20:02
阅读次数:
278
自动依赖注入 什么是依赖注入,用大白话将通过类型提示的方式向函数传递参数。 实例 1 首先,定义一个类: 假如我们在其他地方要使用到 Bar 提供的功能(服务),怎么办,直接传入参数即可: 访问 /bar,显示 $bar 的实例: 也就是说,我们不需要先对其进行实例!如果学过 PHP 的面向对象,都 ...
分类:
其他好文 时间:
2017-09-06 23:50:30
阅读次数:
196
vue中的锚链接跳转问题 在vue中的锚链接和普通的html不同,关于vue中的锚链接可以参考vue 中的 scrollBehavior 滚动行为 在router.js中 //创建 router 实例 const router = new VueRouter({ routes, mode: 'his ...
分类:
其他好文 时间:
2017-09-04 19:49:31
阅读次数:
133
加个监听就好了~~~~而且很简单 1.在routes.php(api.php\web.php)中添加如下语句 Event::listen('illuminate.query', function($sql,$param) { file_put_contents(public_path().'/sql ...
分类:
数据库 时间:
2017-09-01 17:51:18
阅读次数:
325
The Karting championship will be held on a straight road. There are N keypoints on the road. The path between keypoint i and i+1 has a degree of diffi ...
分类:
其他好文 时间:
2017-08-30 18:33:34
阅读次数:
183
(前提是已经安装了node) 一、简单介绍 Vue 开发|文件目录结构部署 目录结构 ├── index.html 入口页面 ├── build 构建脚本目录 │ ├── build-server.js 运行本地构建服务器,可以访问构建后的页面 │ ├── build.js 生产环境构建脚本 │ ├ ...
分类:
其他好文 时间:
2017-08-25 10:55:34
阅读次数:
166
$get=$this->getRequest()->getQuery();$post=$this->getRequest()->getPost();$file=$this->getRequest()->getFiles();echo$this->getRequest()->get(‘title‘);$this->getRequest()->getParams();params(yaf自带的)routes.user.map通过params这..
分类:
其他好文 时间:
2017-08-23 23:01:09
阅读次数:
201