摘要: 通过修改高度为 min-height 来解决字的容纳问题,引发白色线的高度 没有办法根据父元素自适应了(flex解决不了) 我就在mounted 之后把他的高度赋值 写了这么一句话发现不行 this.$refs.line.style.height =${this.$refs.wrapper.getB 阅读全文
posted @ 2020-08-24 16:12 过程是风景 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 通过命令直接修改远程仓库地址 git remote 查看所有远程仓库 git remote xxx 查看指定远程仓库地址 git remote set-url origin 你新的远程仓库地址 先删除在添加你的远程仓库 git remote rm origin git remote add orig 阅读全文
posted @ 2020-08-23 20:23 过程是风景 阅读(1626) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/1798435/202008/1798435-20200818111215287-634785658.png) 阅读全文
posted @ 2020-08-18 11:12 过程是风景 阅读(146) 评论(0) 推荐(0) 编辑
摘要: npm publish 遇到 403 怎么办? 这说明你没有切换到 npm 原始源,那么你只需要用 npm config delete registry 删除淘宝源,然后再 publish。 publish 成功之后再切换回淘宝源 npm config set registry https://re 阅读全文
posted @ 2020-08-16 23:18 过程是风景 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 使用css变量来自由操作 :root { --button-height: 32px; --font-size: 14px; --button-bg: white; --button-active-bg: #eee; --bordor-radius: 4px; --color: #333; --bo 阅读全文
posted @ 2020-08-11 17:09 过程是风景 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 直接引入编辑器会报错 Google: typescript svg cannot find module找到 这个网址 我放到了 shims-vue.d.ts 里面 declare module "*.svg" { const content: any; export default content 阅读全文
posted @ 2020-08-10 23:30 过程是风景 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 编辑 Ctrl + Space 基本代码完成 (任何类、 方法或变量名称) Ctrl + Shift + Enter 完整的语句 Ctrl + P (在方法调用参数) 内的参数信息 Ctrl + Q 快速的文件查找 Ctrl + mouse 在简短的信息的代码 Ctrl + F1 在插入符号显示错误 阅读全文
posted @ 2020-08-09 19:56 过程是风景 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 什么是TypeScript TypeScript = JS + : 类型 类型不止JS的那七种类型 还可以有类(也就是构造函数,对象类型再细分) 还可以有我们自己声明的类 类型也就是编译时的类型,会根据他检查JS代码 在安装TypeScript库时,会安装一个工具TypeScript Compile 阅读全文
posted @ 2020-07-25 15:24 过程是风景 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 路由是什么 分发请求 默认路由:默认初始页面 404路由(保底路由):去到不在路由表的路由 嵌套路由:子路由(路由分层) hash模式?history模式?memory模式? hash模式 优点:任何情况下都可用 缺点:SEO不友好(服务器收不到hash) history模式 优点:后端将所有前端路 阅读全文
posted @ 2020-07-23 19:43 过程是风景 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 日期和时间的组合表示法 合并表示时,要在时间前面加一大写字母T,如要表示东八区时间2004年5月3日下午5点30分8秒,可以写成2004-05-03T17:30:08+08:00或20040503T173008+08 data API var d = new Date() //undefined d 阅读全文
posted @ 2020-07-22 01:54 过程是风景 阅读(154) 评论(0) 推荐(0) 编辑