1、let router = new VueRouter({}) router.addroute([])可以添加路由 meta:路由元数据 使用方法:在定义路由中时使用: router,addRoutes([ {path:'/user',name:'user',meta:{flag:false} ] ...
分类:
其他好文 时间:
2019-05-02 11:59:03
阅读次数:
118
今天遇到了一个问题,在routes/web.php中配置了路由,但始终无法访问该路由,一直报404。 然后我在app/Exceptions/Handler.php文件中,修改render()方法: 把异常打印出来: 先通过 php artisan route:list 查看路由列表 原因是larav ...
分类:
移动开发 时间:
2019-04-26 11:03:40
阅读次数:
433
3.1 MVC简介 MVC(Model-View-Controller,模型—视图—控制器模式)用于表示一种软件架构模式。它把软件系统分为三个基本部分:模型(Model),视图(View)和控制器(Controller)。Asp.net MVC是微软提供的MVC开发框架。 MVC将UI层分为了三个部 ...
分类:
Web程序 时间:
2019-04-21 09:39:47
阅读次数:
212
virtualbox nat hostonly 虚拟机两张网卡:分别调成NAT(eth0)和host only(eht1)模式. nat的网卡不用设置,host only网卡调为(vi /etc/sysconfig/network-scripts/ifcfg-eth1): 注意:一定不要设置gate ...
分类:
其他好文 时间:
2019-04-18 12:20:10
阅读次数:
174
首先需要安装依赖: 再定义: routes.js,配置路由规则: import Home from './components/Home' import Menu from './components/Menu' import Login from './components/Login' impo ...
分类:
其他好文 时间:
2019-04-13 00:51:25
阅读次数:
219
动态添加路由可以用了做权限管理。登录后服务器端返回权限菜单,前端动态添加路由 然后在设置菜单 1、vue-router 有方法router.addRoutes(routes) 动态添加更多的路由规则。参数必须是一个符合 routes 选项要求的数组。 使用方法 this.$router.option ...
分类:
其他好文 时间:
2019-04-08 10:37:30
阅读次数:
256
font-awesome:字体,图标库 """ajax_learn URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangop ...
分类:
Web程序 时间:
2019-04-02 17:07:31
阅读次数:
162
尝试在机器上部署athens,运行时发生如下异常 error adding proxy routes ,exec: "go": executable file not found in $PATH。 一般来说go程序的运行环境是不需要安装go的。在交叉编译的加持下,分发部署更加方便。但是如果go程序 ...
分类:
其他好文 时间:
2019-03-30 21:29:30
阅读次数:
322
入口文件位置:routes->web.php 路由格式:Route::get('hello', function () { return 'Hello';});访问方式: http://www.laravel.com/hello注意这里www.laravel.com是本机配的虚拟域名,可以是任意名称 ...
分类:
其他好文 时间:
2019-03-30 13:37:22
阅读次数:
324
R1配置一、配置接口IP[r1]interfaceGigabitEthernet0/0/0[r1-GigabitEthernet0/0/0]ipaddress12.0.0.1255.255.255.252[r1-GigabitEthernet0/0/0]quit[r1]interfaceGigabitEthernet0/0/1[r1-GigabitEthernet0/0/1]ipaddress16
分类:
其他好文 时间:
2019-03-28 15:17:41
阅读次数:
128