OpenAI Chat-GPT WTFFFFFFFFEN
Prevent a cross-origin iframe from scrolling its parentEN
Accidentally found in business work that after embedding some specific iframes, the top-level page will automatically scroll to the iframe, at the the time when iframe is loaded.
聊聊纯 CSS 图标中文
在 重新构想原子化 CSS 中,我提到了 UnoCSS 的一个预设,它提供了在纯 CSS 中按需使用任何图标的能力。在这篇文章中,我想和大家分享下它的工作原理。
JavaScript 中的硬绑定与软绑定中文
在 JavaScript 中,this 的绑定是动态的,在函数被调用的时候绑定,它指向什么完全取决于函数在哪里调用,绑定规则有默认绑定、隐式绑定、显式绑定、 new 绑定等,本文就硬绑定与软绑定的原理进行深入介绍。
JS / TS 中的重载 (Overload)中文
重载,就是函数或者方法有相同的名称,但是参数列表不相同的情形。一直觉得 JavaScript 是没有重载的,直到 TypeScript 的出现,所以我一直觉得 JavaScript 没有重载,TypeScript 才有,但是现在看来我是错的。
Best Practices for Writing Super Readable CodeEN
Code readability is fundamental for development — it is key to maintainability and working together with a team. This article will detail the best practices when writing readable code in JavaScript.