我最爱的11款谷歌插件

作为前端程序员,日常太多时间花在浏览器上了,把它用到极致吧!

Chrome绝不仅仅是一个浏览器,它众多的插件真的非常强大!上个月看了一篇介绍谷歌插件的文章后,我意识到自己错过了太多,便特意花了两周时间,搜罗插件商店,找到了最适合自己的工具,真是太好用了!

More

Redux tutorial

Tutorial 0 - introduction

Why this tutorial?
While trying to learn Redux, I realized that I had accumulated incorrect knowledge about flux through
articles I read and personal experience. I don’t mean that articles about flux are not well written
but I just didn’t grasp concepts correctly. In the end, I was just applying documentation of different
flux frameworks (Reflux, Flummox, FB Flux) and trying to make them match with the theoretical concept I read
about (actions / actions creators, store, dispatcher, etc).

More

SVG 基础知识(一) - SVG 视口

SVG 是可缩放矢量图形(Scalable Vector Graphics, SVG),一种用来描述二维矢量图形的 XML 标记语言。SVG 图像在放大或改变尺寸的情况下其图形质量不会有所损失。SVG是万维网联盟的标准,与诸如 DOM 和 XSL 之类的 W3C 标准是一个整体。

More

VUE学习笔记

5月28日换了新工作,直到现在才差不多适应过来。有两个多月没更新博客了,我几乎忘了怎样用Hexo发布新文章了😓。六七月大概是在学VUE的课程,在语雀做的学习笔记。为什么选择在语雀做笔记呢?因为屏幕截图可以直接粘贴,结构导航体验很好。以下是我做的VUE笔记:

More

CSS块元素垂直居中的5种方法

CSS垂直居中是工作中经常遇到的问题,也是前端面试常问问题。

总体来说,CSS块元素垂直居中分为两种情况:子元素宽高固定或不固定。
子元素宽高固定比较简单,结合padding或margin设置居中即可。子元素宽高不固定也有办法,总结起来大概有设置绝对定位、设置显示方式为flex或table-cell。
垂直居中DEMO

More

git config配置用户

用户配置

1
2
git config --global user.name "name"
git config --global user.email 123@xxx.com

配置级别

--local [默认]:优先级高,只影响本仓库

--global [中优先级]:影响到所有当前用户的git仓库

--system [低优先级]:影响到全系统的git仓库