Reading Notes / JavaScript Notes
2021.03.02
The URL interface
The built-in URL class provides a convenient interface for creating and parsing URLs.
Reading Notes / JavaScript Notes
2021.03.02
The built-in URL class provides a convenient interface for creating and parsing URLs.
Reading Notes / JavaScript Notes
2021.03.01
The JavaScript Array object defines a number of methods that you can use to work with arrays. Here's common ones you might encounter daily.
2018.12.21
In JavaScript, a callback is a function that is passed as an argument to another function and is invoked with the result when the operation completes. In functional programming, this way of propagating the result is called continuation-passing style (CPS). It simply indicates that a result is propagated by passing it to another function (the callback), instead of directly returning it to the caller.
2018.12.17
JavaScript is a very function-oriented language. As we know, functions are first class objects and can be easily assigned to variables, passed as arguments, returned from another function invocation, or stored into data structures. A function can access variable outside of it. But what happens when an outer variable changes? Does a function get the most recent value or the one that existed when the function was created? Also, what happens when a function invoked in another place - does it get access to the outer variables of the new place?
2018.05.11
As I need to update an array in Firebase Cloud Firestore with duplicate-free values, let's summarise the methods I found and see how they perform.
2018.05.03
Well, just got some problems in JavaScript loop with http request inside. Take a short note showing how to deal with it which got ideas from the post JavaScript: async/await with forEach().
2018.03.09
本来只是想简单看看 cookie、localStorage 和 sessionStorage 的,没想到一搜索扩展了很多知识,但是,中心主题还是集中在 web storage (localStorage, sessionStorage) 的认识上,以及怎么使用它们。不过,在此之前,先来简单认识一下 cookie 吧。
2016.09.22
Markdown makes writing blog posts simple and fast, but sometimes that simplicity comes with limitations. Recently on updating this blog theme, I'm intend to include images in the post with captions, and there wasn’t a straightforward way using Markdown. While adding an img tag is very easy with Markdown, I would have to do some fiddling to inset the caption.