JavaScript macro task, micro task

Before understanding macro tasks and micro tasks, we need to know some basic concepts of JS running mechanism JS operation mechanism JS is single threaded execution function person() { play() } function play() { swim() } function swim() { throw new Error('error') } person() A man is going to pUTF-8...

Posted by agisthos on Mon, 20 Sep 2021 14:22:47 +0530

The third of the front three swordsmen -- a summary after learning JavaScript

JavaScript language history ‚óŹ JavaScript is a script language developed by Netscape company (Netscape company of the United States), which is composed of The utility model has the advantages of simple structure, convenient use, low requirements for users' own knowledge level and easy to learn UTF-8...

Posted by dolcezza on Mon, 20 Sep 2021 15:31:38 +0530

javascript operation page

Introduction to DOM The HTML DOM provides access to all elements of a JavaScript HTML document. When a web page is loaded, the browser creates a Document Object Model for the page. The HTML DOM model is constructed as a tree of objects. HTML DOM tree Nodes in the node tree have hierarchical relUTF-8...

Posted by filteredhigh on Mon, 20 Sep 2021 16:05:00 +0530

Promise goes from entry to proficiency

1.Why do we need promise? Javascript is a single-threaded language, so in the early days when we solved asynchronous scenarios, most of the time it came in through callback functions That's ok. For example, sending an ajax request in a browser is an asynchronous scenario that often occurs. AfteUTF-8...

Posted by brianlange on Mon, 20 Sep 2021 17:23:15 +0530

EL expression tutorial

1, EL expression Full name of EL expression: Expression Language EL expression function: replace the expression script in JSP page to output data EL expressions are much simpler than JSP expression scriptsThe format of EL expression is ${expression}. Note: EL expression is written in jsp page.UTF-8...

Posted by overlordofevil on Mon, 20 Sep 2021 17:31:12 +0530

Analysis of front-end binary

summary Blob: a blob object represents an immutable, raw data class file object. Its data can be read in text or binary format, or converted into ReadableStream for data operation.Arraybuffer: the arraybuffer object is used to represent a generic, fixed length raw binary data buffer.Buffer: theUTF-8...

Posted by mits on Tue, 21 Sep 2021 13:18:42 +0530

Introduction to new features of ECMAScript 2021(ES12)

brief introduction ES12 is a version issued by ECMA Association in June 2021. Because it is the twelfth version of ECMAScript, it is also called ES12 It has been a month since ES12 was released. What are the new features and differences of ES12? Let's have a look. Basically, ES12 introduces theUTF-8...

Posted by golfinggod on Wed, 22 Sep 2021 10:34:01 +0530

Vue implements user-defined list, drag list sorting and display

Vue implements user-defined list, drag list sorting and display 1, Question On the list editing page, you can drag and edit the header information. The editing contents include: the order of sorting the list and whether each column of the list needs to be displayedThe master plan has two major UTF-8...

Posted by Sarok on Wed, 22 Sep 2021 10:34:57 +0530

Implement a display ellipsis that exceeds the content, and the mouse floats into the display tooltip. If it does not exceed, the tooltip component is not displayed

Implement a display ellipsis that exceeds the content, and the mouse floats into the display tooltip. If it does not exceed, the tooltip component is not displayed ps: this component is based on element plus and implemented using vue3 the latest setup syntax. If you don't know, you can use otheUTF-8...

Posted by Ron Woolley on Wed, 22 Sep 2021 12:00:41 +0530

♥ Enter the data type of TypeScript ♥

Foreword: no matter what language we are learning, we need to understand how to define a variable or Function. Today, let's take a look at the data types of TypeScript. 1, Difference between Ts and Js As we all know, JavaScript is a scripting language, and its official name is ECMAScript (becauUTF-8...

Posted by sonicfusion on Wed, 22 Sep 2021 19:09:45 +0530