从头开始设置MAC开发环境

已有配置文件 1 git clone https://github.com/kiyonlin/config.git linux vim vim插件 zsh phpstorm sumlime text HomeBrew, iterm and oh-my-zsh /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安装iterm 去掉native full screen window、配置字体、快速启动热键 sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Javascript Object 学习

原文MDN Object.assign() 把任意多个的源对象自身的可枚举属性拷贝给目标对象,然后返回目标对象。 语法 Object.assign(target, ...sources) 参数 target 目标对象。 sources 任意多个源对象。 返回值 目标对象会被

javascript中的apply,call,bind

apply和call apply和call的作用一致,只是接受的参数方式不同 1 2 func.apply(this, [arg1, arg2]); func.call(this, arg1, arg2); bind bind()方法会创建一个新函数。当这个新函数被

CSS小技巧

聊天框添加小三角 重点是.chat-box样式的position属性设置为relative,再利用::after伪元素设置小三角相对位置。 1 2