Browser database IndexedDB introductory tutorial

Browser database IndexedDB introductory tutorial Original author: Ruan Yifeng Date: July 4, 2018 I. Overview With the continuous enhancement of browser functions, more and more websites have begun to consider storing large amounts of data on the client side, which can reduce the data obtained from the server and obtain data directly from the local.… Continue reading Browser database IndexedDB introductory tutorial

JavaScript’s this principle

JavaScript’s this principle Original author: Ruan Yifeng Date: June 18, 2018 1. The origin of the problem To understand the JavaScript language, one sign is to understand the following two ways of writing, which may have different results. var obj = { foo: function () {} }; var foo = obj.foo; // 写法一 obj.foo() //… Continue reading JavaScript’s this principle

Node timer detailed

Node timer detailed Original author: Ruan Yifeng Date: February 23, 2018 JavaScript runs in a single thread, and asynchronous operations are particularly important. As long as you use functions other than the engine, you need to interact with the outside to form an asynchronous operation. Because there are so many asynchronous operations, JavaScript has to… Continue reading Node timer detailed