会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
宝2333
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2019年3月8日
获取7天之前或之后的时间
摘要: function fun_date(aa){ var date1 = new Date(), time1=date1.getFullYear()+"-"+(date1.getMonth()+1)+"-"+date1.getDate();//time1表示当前时间 var date2 = new Date(date1); date2....
阅读全文
posted @ 2019-03-08 12:38 宝2333
阅读(238)
评论(0)
推荐(0)
2019年1月16日
命名视图
摘要: 命名视图将对应的路由组件显示在对应名字的router-view视图中
阅读全文
posted @ 2019-01-16 19:31 宝2333
阅读(218)
评论(0)
推荐(0)
vue中的导航守卫
摘要: Document 首页 子页面
阅读全文
posted @ 2019-01-16 19:27 宝2333
阅读(378)
评论(0)
推荐(0)
路由组件的传参
摘要: Document 又相当于 如果给路由对象上添加props等于true则对应的路由组件里就可以接收props props: { params参数: 数据类型 } 如果路由对象上的props是对象,则会按照原样添加给路由组件 { path: '/', comp...
阅读全文
posted @ 2019-01-16 19:26 宝2333
阅读(460)
评论(0)
推荐(0)
git
摘要: git的基本配置 安装完git想要使用就必须设置用户名和邮箱 (只需要配置一次即可)git config --global user.name "你的用户名"git config --global user.email "你的邮箱" git命令 # 克隆仓库git clone 仓库地址 # 暂存gi
阅读全文
posted @ 2019-01-16 19:21 宝2333
阅读(121)
评论(0)
推荐(0)
2019年1月14日
递归获取对应的权限的路由
摘要: Document
阅读全文
posted @ 2019-01-14 11:25 宝2333
阅读(1868)
评论(0)
推荐(0)
2019年1月11日
动态添加路由addRoutes
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv
阅读全文
posted @ 2019-01-11 15:13 宝2333
阅读(3840)
评论(0)
推荐(0)
项目接口的自动切换
摘要: import axios from 'axios' console.log(process.env.NODE_ENV) const baseURL = process.env.NODE_ENV === 'development' ? 'http://localhost:3000' : 'http://www.xxx.com' axios.defaults.baseURL = `${baseUR...
阅读全文
posted @ 2019-01-11 12:57 宝2333
阅读(167)
评论(0)
推荐(0)
2019年1月10日
作用域插槽
摘要: Document ` 使用组件时 {{scope.a}} {{scope.b}} 还可以使用解构赋值 {{a}} {{b}} --> {{o.movie}} {{o.$...
阅读全文
posted @ 2019-01-10 14:44 宝2333
阅读(154)
评论(0)
推荐(0)
sync修饰符
摘要: Document --> --> --> --> -->
阅读全文
posted @ 2019-01-10 14:43 宝2333
阅读(650)
评论(0)
推荐(1)
上一页
1
2
3
4
5
6
下一页
公告