rem(font size of the root element)是指相对于根元素的字体大小的单位。简单的说它就是一个相对单位。看到rem大家一定会想起em单位,em(font size of the element)是指相对于父元素的字体大小的单位。它们之间其实很相似,只不过一个计算的规则是依赖根元素一个是依赖父元素计算。
via click
__proto__
is the actual object that is used in the lookup chain to resolve methods, etc. prototype
is the object that is used to build __proto__
when you create an object with new
.
function Point(x, y) {
this.x = x;
this.y = y;
}
var myPoint = new Point();
- 安装 Node.js
sudo apt-get update
# For the most recent LTS (the 6.x branch)
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install nodejs
Install Latest Nodejs & Npm on Ubuntu 16.04 & 14.04
- sudo apt-get install python-software-properties
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
- sudo apt-get install nodejs
- node -v
- npm -v
配置: 把 /Applications/Postgres.app/Contents/Versions/9.4/bin
添加 Shell Path.