Recent Posts

使用 zsh 时读取配置文件

less than 1 minute read

macOS 10.15 将默认的终端由 bash 更换为 zsh,由于 zsh 的配置文件为 ~/.zshrc,因此其不会读取 ~/.bashrc 文件,致使原有 bash 未能生效。

HTTP 协议

less than 1 minute read

HTTP 1.0 不复用 TCP,即每个 HTTP 请求均会创建一个 TCP 连接

公开密钥加密

less than 1 minute read

公开密钥加密,又称非对称加密。得名于加密、解密过程分别使用不同密钥,加密使用公钥,解密使用密钥。

获取 js 函数参数名

less than 1 minute read

/** * 获取某方法传入参数的名称列表 * @param {Function} func * @returns {Array} */ function getFuncArguNames(func) { const STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?...

使用脚本创建博文模板

less than 1 minute read

因 jekyll 要求,新建博文需要在 _posts 文件夹下,文件以日期开头,并在顶部有固定模板。为优化创建博文体验,想使用 JavaScript 脚本来完成这一过程。

类别与标签

less than 1 minute read

类别决定归属,标签指示内容

在控制台和元素面板间切换

less than 1 minute read

元素面板到控制台:元素面板找到元素,右键,store as global variable 控制台到元素面板:控制台找到元素对象,右键,reveal in elements panel

HTML 对比 DOM

less than 1 minute read

当你请求某个页面,服务端返回 HTML,浏览器解析该 HTML 并创建对应的对象树(或节点数),该对象树即为 DOM,代表当前页面内容,此时,DOM 与 HTML 一致。

在 chrome 中检查悬浮样式

less than 1 minute read

当你需要调整某个元素 A 的样式,但 A 元素仅在鼠标悬浮于某个 B 元素上才出现时。

Welcome to Jekyll!

less than 1 minute read

You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different wa...

Post: Link Permalink

less than 1 minute read

This theme supports link posts, made famous by John Gruber. To use, just add link: http://url-you-want-linked to the post’s YAML front matter and you’re done.

Post: Quote

less than 1 minute read

Only one thing is impossible for God: To find any sense in any copyright law on the planet. Mark Twain

Post: Notice

1 minute read

A notice displays information that explains nearby content. Often used to call attention to a particular detail.