「 TOOLS 」
March 09, 2018
Words count
3.3k
Reading time
3 mins.
#快速开始
windows安装
在Windows上使用Git,可以从Git官网直接下载安装程序,(网速慢的同学请移步国内镜像),然后按默认选项安装即可。
安装完成后,在开始菜单里找到“Git”->“Git Bash”,蹦出一个类似命令行窗口的东西,就说明Git安装成功!
安装完成后,还需要最后一步设置,在命令行输入:
$ git config --global user.name "Your Name"
$ git config --global user.email "...
Read article
「 REACT-ROUTER 」
March 08, 2018
Words count
28k
Reading time
25 mins.
demo 地址
Router
React Router 的重要组件。它能保持 UI 和 URL 的同步。
Props children(required)
一个或多个的 Route 或 PlainRoute。当 history 改变时, <Router> 会匹配出 Route 的一个分支,并且渲染这个分支中配置的组件,渲染时保持父 route 组件嵌套子 route 组件。
routes
children 的别名。
history
Router 监听的 history 对象,由 history...
Read article
「 JS 」
March 07, 2018
Words count
9.7k
Reading time
9 mins.
文章主要介绍了数组Array.prototype方法的使用,需要的朋友可以参考下,如果你是大神,请直接无视。
在ES5中,一共有9个Array方法 http://kangax.github.io/compat-table/es5/
Array.prototype.indexOf
Array.prototype.lastIndexOf
Array.prototype.every
Array.prototype.some
Array.prototype.forEach
Array.prototype...
Read article
「 CSS3 」
March 06, 2018
Words count
27k
Reading time
24 mins.
布局的传统解决方案,基于盒状模型,依赖 display 属性 + position属性 + float属性。它对于那些特殊布局非常不方便,比如,垂直居中就不容易实现。
2009年,W3C 提出了一种新的方案—-Flex 布局,可以简便、完整、响应式地实现各种页面布局。目前,它已经得到了所有浏览器的支持,这意味着,现在就能很安全地使用这项功能。
原文地址
Demo地址
容器属性
flex-direction属性
flex-direction属性决定主轴的方向(即项目的排列方向)。
.box{...
Read article