Initial understanding of jQuery and use of common API s

Target of this note Can tell what jQuery is Ability to tell the advantages of jQuery Can tell the difference between a JQuery object and a DOM object Ability to use common jQuery API s such as jQuery selectors, filter selectors, and jQuery filteri ...

Posted on Mon, 19 Aug 2019 18:23:01 -0700 by jorley

JavaScript data structure and algorithm hash

The purpose of the hash algorithm is to find a value in the data structure as quickly as possible, use the hash function to know the specific location of the value, and retrieve the value quickly, without iterating the entire data structure like other data structures to find the value.The purpose of a hash function is to give a key value and re ...

Posted on Sun, 18 Aug 2019 17:09:22 -0700 by camdagr81

Front End Engineering-Automatic Image Compression

The team started a new project, hoping to build on the engineering of the original project, and then came up with the idea of automatic image compression. The automatic image compression here is not in the web pack construction phase, but in git commit. pre-commit pre-commit is one of the many hooks of git hook. It can be executed before every ...

Posted on Sun, 18 Aug 2019 06:13:36 -0700 by stvs

LEETCODE (21-30) OF JS ALGORITHM PROBLEMS

Topics come from leetcode Merge two ordered lists Topic Description Merge the two ordered lists into a new ordered list and return. The new linked list is composed of all the nodes of a given two linked list. Example Input: 1 - > 2 - > 4, 1 - > 3 - > 4 Output: 1 - > 1 - > 2 - > 3 - > 4 - > 4 Answer This problem is no ...

Posted on Sat, 17 Aug 2019 00:29:21 -0700 by vboctor

JavaScript Object Array

Array Array is one of the most common types in JavaScript. Any type of data can be stored in the same array, and its length is dynamic and changes automatically as the data in the array is added or subtracted.Each array has a length attribute that represents its length (the number of elements in the array).And the index (subscript) of the array ...

Posted on Fri, 16 Aug 2019 22:40:55 -0700 by udendra

Date and Collection Framework

1. Date operation in java 1970-1-1 0:0:0 Msec java.util.Date encapsulates a long-type millisecond // Current system time Date date = new Date(); System.out.println(date); //Gets the number ...

Posted on Fri, 16 Aug 2019 05:52:13 -0700 by andrewcb

Introduction of Nodejs Core Module

github article link: https://github.com/Vibing/blo... Learning nodejs requires mastering its core, just as learning JavaScript requires mastering functions, objects, data types, BOM, DOM, etc. Noejs has many cores. Here we introduce several cores: Events module, fs module, stream usage, http module. Events Events-driven, non-blocking, asynchron ...

Posted on Fri, 16 Aug 2019 01:12:25 -0700 by BLINDGUY

Write a JS Call Stack Visualizer hound-trace

background Recently, when analyzing some frame sources, while writing notes, some function call stacks want to be recorded as flowcharts and opened http://draw.io Is an operation, after drawing several call stacks, it feels troublesome.So squatting in the toilet, I started to think, since the call stack can be printed out with console.trace(), ...

Posted on Thu, 15 Aug 2019 09:08:54 -0700 by foreknowapparel

Deep Understanding of Promise-Promise's Characteristics and Methods

What is promise? Promise, which means to promise you a result after a period of time (usually an asynchronous operation), is a solution to asynchronous programming. Grammatically speaking, native Promise is an object from which messages for asynchronous operations can be obtained. Characteristics of promise The state of the object is not affect ...

Posted on Thu, 15 Aug 2019 03:14:32 -0700 by koldstar

So simple about the prototype chain?_u proto_u and prototype

Today, a kid from a technical group asked a question: Object.prototype.a = function () { console.log('a') } Function.prototype.b = function () { console.log('b') } function F(){} var f = new F(); f.a(); f.b(); F.a(); F.b(); I meditated on the omnipotent formula in my mind and the answer came out at once: a; Erro ...

Posted on Wed, 14 Aug 2019 22:16:27 -0700 by fernado1283