来认识一下实用的、好用的:URL API
JavaScript 代码经常需要操作URL,目前,Node和所有浏览器(除了IE)之外,都实现了URL类用于对其的操作,但它并不是ES标准定义的。这个类是在WHATWG中标准化的。 使用URL() 构造器函数创建URL对象时,可以传入1个绝对URL作为参数,也可以传入2个参数,第一个作为相对URL,第二个传入绝…
Read articleFrontend · Engineering · Ideas
Notes on frontend development, engineering, and the ideas in between. Connecting what I learn, one story at a time.
Explore the disciplines
Selected stories
JavaScript 代码经常需要操作URL,目前,Node和所有浏览器(除了IE)之外,都实现了URL类用于对其的操作,但它并不是ES标准定义的。这个类是在WHATWG中标准化的。 使用URL() 构造器函数创建URL对象时,可以传入1个绝对URL作为参数,也可以传入2个参数,第一个作为相对URL,第二个传入绝…
Read article代数效应 代数效应能够将副作用(例子中为请求图片数量)从函数逻辑中分离,使函数关注点保持纯粹。(函数调用产生的副作用不需要使用者关心,并且是上下文无关的,并不与上下文逻辑相绑定) Fiber Fiber并不是计算机术语中的新名词,他的中文翻译叫做纤程,与进程(Process)、线程(Thread)、协程(Coro…
Read articlejex.im/regulex/,正则可视化网站 参照 想要白嫖正则是吧?这一次给你个够! 就因为这三个知识点,我彻底学废了”正则表达式“ 补充 匹配位置 正则表达式是匹配模式,要么匹配字符,要么匹配位置 啥是位置? 正则表达式是匹配模式,要么匹配字符,要么匹配位置。那什么是位置呢? 如下图箭头所指,位置可以理解为…
Read articleA growing collection
Learning goes beyond collecting bookmarks. Writing, building, and connecting ideas turns every discovery into a starting point.
Explore JavaScript, TypeScript, CSS, and the browser. Understand the fundamentals behind everyday work.
From working with React and Vue to reading their source. Discover the decisions behind the tools.
Notes on Node.js, Webpack, build tools, and real projects. Turn experience into reusable knowledge.
Interview notes, learning journals, and personal reflections. Look back to find a way forward.
Topic index
Follow your curiosity and discover the connections between notes.
Stay in the loop
Follow new articles through RSS, and read at your own pace in your favorite reader.
Every note is a small step toward understanding.