Min's blog

I choose to see the beauties in the world.

导航

摘要: 1. React Hooks 是什么? Hooks可以理解为不编写class时使用state及其他react特性的方法集。 2. Hooks 支持情况 Hooks支持react v16.8.0及之后的版本,100%向后兼容。 3. Hooks使用规则 只在最顶层使用 Hook,不要在循环,条件或嵌套 阅读全文

posted @ 2020-02-03 08:58 Min77 阅读(144) 评论(0) 推荐(0) 编辑

摘要: 避免内联和嵌入代码,尽量引入外部文件 样式在上,脚本在下,样式在head内 上线前通过自动化工具压缩样式表,或适应预处理器,如less,sass,stylus 尽量合并多个CSS文件,因为浏览器的并行下载速度有限 使用async异步加载页面内容,如使用多个属性,并无固定顺序<script async 阅读全文

posted @ 2019-08-14 17:48 Min77 阅读(87) 评论(0) 推荐(0) 编辑

2021年1月5日

摘要: node-sass版本不兼容,解决如下: 移除原版本 yarn remove node-sass 安装低版本 yarn add node-sass@4.14.1 阅读全文

posted @ 2021-01-05 20:07 Min77 阅读(529) 评论(0) 推荐(0) 编辑

2020年2月3日

摘要: 强制换行 1、word-break: break-all; 只对英文起作用,以字母作为换行依据。 2、word-wrap: break-word; 只对英文起作用,以单词作为换行依据。 3、white-space: pre-wrap; 只对中文起作用,强制换行。 禁止换行 white-space:n 阅读全文

posted @ 2020-02-03 15:10 Min77 阅读(121) 评论(0) 推荐(0) 编辑

2020年1月31日

摘要: 1. git remote add 仓库名 仓库地址 即完成关联 2. git push 仓库名 新分支 提交本地分支测试 3. github 可能无法链接22端口,在windows防火墙入站规则中设置允许22端口连接 阅读全文

posted @ 2020-01-31 20:02 Min77 阅读(988) 评论(0) 推荐(0) 编辑

摘要: 1. 查看本机是否存在ssh cd ~/.ssh 2. 创建ssh ssh-keygen 3. 查看ssh cat ~/.ssh/id_rsa.pub 4. 添加到远程仓库 5.配置全局usename.useremail git config --global user.name "xxx" git 阅读全文

posted @ 2020-01-31 19:59 Min77 阅读(4560) 评论(0) 推荐(0) 编辑

2019年10月12日

摘要: backTop() { var top = document.body.scrollTop || document.documentElement.scrollTop; this.duration -= 3; this.duration = this.duration <= 0 ? 1 : this 阅读全文

posted @ 2019-10-12 10:21 Min77 阅读(142) 评论(0) 推荐(0) 编辑

2019年9月27日

摘要: import * as rules from 'vee-validate/dist/rules'; import zh_CN from 'vee-validate/dist/locale/zh_CN' for (let rule in rules) { extend(rule, { ...rules 阅读全文

posted @ 2019-09-27 14:10 Min77 阅读(487) 评论(0) 推荐(0) 编辑

2019年9月24日

摘要: 1. 无法合并不相关历史记录 阅读全文

posted @ 2019-09-24 17:35 Min77 阅读(121) 评论(0) 推荐(0) 编辑

摘要: 1.笔试题 vuex 存储的数据为null或者undefined是为啥? 1.伸缩布局 flex规则 2.横向布局的实现方法有多少? 3.说一说 flex:1; 的含义 / 说一说flex:1 1 300px; 的含义 4.域名的区别 比如 baidu.com / www.baidu.com / aaa.baidu.com 的区别是什么? 5.为什么要跨域?如何解决跨域?跨域的弊端? 6.项目开... 阅读全文

posted @ 2019-09-24 12:26 Min77 阅读(144) 评论(0) 推荐(0) 编辑

2019年9月17日

摘要: 1. <router-link tag="a" target="_blank" :to="{name:'detail',query:{goodsId:'id'}}">00000</router-link> 2.handleHelp () { const { href } = this.$router 阅读全文

posted @ 2019-09-17 10:56 Min77 阅读(256) 评论(0) 推荐(0) 编辑