1、查询参login?id=12345配置:(传参):to="{name:‘login‘,query:{id:‘loginid‘}}"获取:(取参)this.$route.query.id2、路由参数配置:(传参):to="{name:‘login‘,params:{id:‘loginid‘}}"
分类:
其他好文 时间:
2019-06-11 12:47:54
阅读次数:
80
models views settings urls python """login URL Configuration The list routes URLs to views. For more information please see: https://docs.djangoprojec ...
分类:
其他好文 时间:
2019-06-07 11:00:27
阅读次数:
88
使用composer的自动加载、命名空间及shell脚本,构建原生php框架 # smarty-frame运用php构建自己的框架 根目录/application:应用程序核心目录 根目录/configs下: config:应用配置文件 db:数据库配置文件 routes:路由配置文件 fileCa ...
分类:
Web程序 时间:
2019-05-24 12:48:45
阅读次数:
180
经过前面几次的学习,已经可以做下小功能,今天要实现的是修改用户路由。 一、users_model.js 功能:定义用户对象模型 二、users_controller.js 功能:为Express服务器实现修改用户路由 三、user.html 四、routes.js 功能:为Express服务器实现处 ...
分类:
Web程序 时间:
2019-05-23 21:04:55
阅读次数:
147
1.配置动态路由 const routes: Routes = [ {path: 'home', component: HomeComponent}, {path: 'news', component: NewsComponent}, {path: 'newscontent/:id', compon ...
分类:
其他好文 时间:
2019-05-23 16:06:04
阅读次数:
137
express概念 是基于node环境的一个用于web应用开发的服务端框架 创建express项目流程 1.安装express generator 2.创建项目名称 效果如下 3.项目分析 bin : 整个项目的服务配置文件 : 静态资源文件 routes: 整个项目的路由配置文件 views: 整 ...
分类:
其他好文 时间:
2019-05-22 20:43:30
阅读次数:
104
Vue.use(Router) const routes = [ { path: '/login', name: 'login', component: Login }, { path: '/index', name: 'index', component: Index, children: [ { ...
分类:
其他好文 时间:
2019-05-22 19:28:44
阅读次数:
118
经过前面几次的学习,已经可以做下小功能,今天要实现的事用户注册路由。 一、users_model.js 功能:定义用户对象模型 二、users_controller.js 功能:为Express服务器实现用户注册的路由 三、signup.html 用户注册页面 四、routes.js 功能:为Exp ...
分类:
Web程序 时间:
2019-05-18 20:54:12
阅读次数:
131
前段异步流程工具 1.promise 2.Generator函数 3.Async函数 4.Node.js提供的 nextTick 5.第三方的async.js async.js 1.async函数式是由es6提供的 2.async函数的底层其实就是generator函数 3.async函数需要和关键 ...
分类:
Web程序 时间:
2019-05-18 18:51:15
阅读次数:
138
#客户端路由(前端路由)routing,体验单页面应用(SPA:single page application) 1. 创建需要的组件(home、product-list、product-create) 2. 构建路由,在app.module.ts中 (1)路由配置 import {Routes,R ...
分类:
其他好文 时间:
2019-05-08 15:57:56
阅读次数:
117