摘要: 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)
摘要: 命名视图将对应的路由组件显示在对应名字的router-view视图中 阅读全文
posted @ 2019-01-16 19:31 宝2333 阅读(218) 评论(0) 推荐(0)
摘要: 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 config --global user.name "你的用户名"git config --global user.email "你的邮箱" git命令 # 克隆仓库git clone 仓库地址 # 暂存gi 阅读全文
posted @ 2019-01-16 19:21 宝2333 阅读(121) 评论(0) 推荐(0)
摘要: Document 阅读全文
posted @ 2019-01-14 11:25 宝2333 阅读(1868) 评论(0) 推荐(0)
摘要: <!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)
摘要: Document ` 使用组件时 {{scope.a}} {{scope.b}} 还可以使用解构赋值 {{a}} {{b}} --> {{o.movie}} {{o.$... 阅读全文
posted @ 2019-01-10 14:44 宝2333 阅读(154) 评论(0) 推荐(0)
摘要: Document --> --> --> --> --> 阅读全文
posted @ 2019-01-10 14:43 宝2333 阅读(650) 评论(0) 推荐(1)