1、构建选项 (1)routes (2)mode,配置路由模式 (3)base,应用的基路径 (4)linkActiveClass,默认的激活的class (5)linkExactActiveClass,默认的精确激活的class (6)scrollBehavior 2、实例属性 (1)router ...
分类:
其他好文 时间:
2020-02-24 16:47:30
阅读次数:
55
首先RouteConfig配置文件RegisterRoutes方法添加以下代码: routes.MapMvcAttributeRoutes(); Controller Aciont 加 [Route("new/{id:long:min(1)}.html"), HttpGet] 在web.config ...
分类:
Web程序 时间:
2020-02-24 15:13:49
阅读次数:
96
Docker安装 1.实验前的准备 准备虚拟机 docker1:192.168.76.128 关闭防火墙 2.步骤 1.虚拟机基本准备 2.配置yum源 3.安装docker 图1 图2 完成上面的步骤表示docker已经安装完成,环境也已经部署好了,接下来介绍一下docker的简单命令 ...
分类:
其他好文 时间:
2020-02-19 18:53:05
阅读次数:
68
路由传参 用于组件与组件之间通过路由传递数据 通过url正则传递数据 i)设置 ii)如何传 vue this.$router.push( ) vue this.$route对象是管理路由参数的,传递的参数会在this.$route.params字典中 this.$route.params.pk 示 ...
分类:
其他好文 时间:
2020-02-18 09:20:29
阅读次数:
57
修改App_Start文件夹中的WebApiConfig文件里的Register方法 public static void Register(HttpConfiguration config) { // Web API 配置和服务 GlobalConfiguration.Configuration. ...
分类:
移动开发 时间:
2020-02-15 13:50:32
阅读次数:
182
项目初始化 """ 1)根组件:App.vue <template> <div id="app"> <router-view /> </div> </template> 2)路由配置:router/index.js const routes = [ { path: '/', name: 'Home' ...
分类:
移动开发 时间:
2020-02-15 09:31:45
阅读次数:
100
六、服务路由网关 1.在父项目上面新建模块myzuul 2.选择Spring Cloud Discovery—>Eureka Discovery Client 选择Spring Cloud Routing—>Zuul 3.Module Name一般不做修改,和项目名称Artifact一样 4.将sr ...
分类:
编程语言 时间:
2020-02-12 13:17:19
阅读次数:
81
效果展示: 应写成下图这种形式: :id为占位 现在是通过什么路径向路由组件传递数据的? 通过请求参数${message.id}传递的 请求参数有两种: 1).Param 2).Query (?后面,类似于get) vue param和query两种传参方式 1、传参方式 query传参方式 thi ...
分类:
其他好文 时间:
2020-02-09 11:37:30
阅读次数:
87
Given a map of airline routes, you are supposed to check if a round trip can be planned between any pair of cities. Input Specification: Each input fi ...
分类:
其他好文 时间:
2020-02-09 00:40:37
阅读次数:
99
路由: (1)监听地址栏的变化 (2)根据地址栏的变化切换到对应的组件 使用路由: 1、创建一个vue项目:vue create routerdemo 注意:在选择插件的时候只选择babel 2、安装路由插件:npm install vue-router 3、创建路由:src下新建router.js ...
分类:
其他好文 时间:
2020-02-08 09:40:08
阅读次数:
118