/* 由于道路的互补性 最短路不会再同一时刻相交 所以实际上就是跑两个最短路 取max */ #include #include #include #include #include #define M 410 #define ll long long using namespace std; in... ...
分类:
其他好文 时间:
2018-06-28 23:00:04
阅读次数:
327
AutoCmdb 1 # urls.py 2 """AutoCmdb URL Configuration 3 4 The `urlpatterns` list routes URLs to views. For more information please see: 5 https://docs. ...
分类:
数据库 时间:
2018-06-24 00:31:54
阅读次数:
380
1、webpack和vue的按需加载组件 webpack特有的懒加载文件的方式,很大的提升了webpack打包SPA应用的在性能方面。 而从webpack2以后require.ensure已经被import()替换。 export default new Router({ routes: [{ pa ...
分类:
Web程序 时间:
2018-06-22 01:05:09
阅读次数:
255
本篇文章主要记录笔者项目中使用 react-route + webpack 做路由按需加载的心得,可能只有笔者一个人看,权当日记了。 很久很久以前,react-route还是2.X和3.X版本的时候,我们是这样做按需的: const routes = { path: '/', component: ...
分类:
其他好文 时间:
2018-06-21 20:16:11
阅读次数:
645
1. 我们主要在index.js重新设置路由的重新定向redirect参数 index.js 2.在App.vue 设置vue-router <router-link to="/">首页</router-link> <router-link to="/params/2018-6-18/世界杯">pa ...
分类:
其他好文 时间:
2018-06-18 21:45:45
阅读次数:
884
标签: 我一个项目都基本上做完了,结果部署到我服务器的时候结果一直报404 找不到 一看global.asax有个路由注册的代码 public static void RegisterRoutes(RouteCollection routes) { routes.EnableFriendlyUrls ...
分类:
Web程序 时间:
2018-06-18 16:06:46
阅读次数:
213
Naming a Route get 'home/index', as: "different_name" 会得到prefix: different_name代替home_index, 这个是路径的名字。 get 'home/ping', to: "home#pong" to方法,定义到哪个控制器的 ...
分类:
其他好文 时间:
2018-06-18 12:41:35
阅读次数:
268
Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gainin ...
分类:
其他好文 时间:
2018-06-14 01:14:55
阅读次数:
194
vue2.0 实现导航守卫(路由守卫) 路由跳转前做一些验证,比如登录验证,是网站中的普遍需求。 对此,vue-route 提供的 beforeRouteUpdate 可以方便地实现导航守卫(navigation-guards)。 导航守卫(navigation-guards)这个名字,听起来怪怪的 ...
分类:
其他好文 时间:
2018-06-06 12:29:09
阅读次数:
2511
Angular 提供了一种方式来把服务提供商从模块中分离出来,以便模块既可以带着 providers 被根模块导入,也可以不带 providers 被子模块导入。 区别: `forRoot` creates a module that contains all the directives, the ...
分类:
其他好文 时间:
2018-05-29 18:54:11
阅读次数:
361