理解JS中的this
理解JS中的this根据W3C的文章,JS中的this的内容可以分为以下几种情况: 方法中的this(this in method) 单独的this(this alone) 一般情况下函数中的this(this in a Function default) 严格模式下函数中的this(this i ...
Read more
自定义Terminal登录欢迎界面
废话不多说,先给个效果图。 这里基本原理就是在每次打开终端的时候,都先去执行一条命令来打印欢迎信息。这里使用的是parrotsay这个命令。 一、安装parrotsaynpm install --global parrotsayparrotsay hello world # 测试是否安装成功 二 ...
Read more
使用iTerm2+oh-my-zsh+agnoster美化Terminal
前言Mac自带的Terminal实在是太丑了,而且又没有自动补全。然后看到大佬们的Terminal一般都挺好看的,于是想自己也倒腾一个。在这里做个记录。 安装iTerm2前往iTerm2的官网,下载并安装镜像。和安装普通的软件没什么区别。 安装Oh-my-zsh1. 将shell变为zsh一般默认情 ...
Read more
使用Github和Hexo搭建博客
基础篇一、Hexo的安装1. 安装Node2.安装Git3. 安装Hexonpm install -g hexo-cli 二、Hexo的基本使用1. 创建博客文件的存放目录hexo init <folder> 执行此命令之后,hexo-cli会自动创建一个名为\<folder>的 ...
Read more
Hello World
Just a test
Read more
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in ...
Read more