Vue3 New Features Built-in Component <Teleport>

Any portal - Teleport The combined API for Vue3 and the Proxy-based Response Principle have been described in many articles, in addition to these more eye-catching updates. Vue3 also added a built-in component: Teleport . The main purpose of this component is to move DOM elements within a template to other locations. Why do we need Telep ...

Posted on Fri, 03 Dec 2021 12:04:56 -0500 by goldfiles

JavaScript advanced level 8 (built-in object - Math object and Date object)

1, What are built-in objects There are three kinds of objects in JavaScript: custom object, built-in object and browser object. Built in objects refer to some of the built-in objects of JS language. These objects are used by developers and provide some commonly used or most basic and necessary functions (properties and methods). Can help ...

Posted on Fri, 03 Dec 2021 10:10:51 -0500 by blues

How to write the user-defined instructions of vue3 with the global user-defined instructions of vue3. Hook function of custom instruction. Easy to understand

1, Let's first look at the hook of Vue2 custom instruction bind: triggered when the instruction is bound to the corresponding element. It will only trigger once. Inserted: triggered when the corresponding element is inserted into the parent element of the DOM. Update: this hook will be triggered when the element is updated (at this time, th ...

Posted on Fri, 03 Dec 2021 08:56:27 -0500 by osti

Axios - understanding and use of Axios

Document description of axios: axios Only part of and the encapsulation of axios are recorded here catalog: 1,axios.create(config) 2. Request interception and response interception 3. Cancel interception 4. Practice of request interception and response interception 1. Create a new axios according to the specified configuration; 2. Why ...

Posted on Fri, 03 Dec 2021 07:38:58 -0500 by OpSiS

NestJS study notes

brief introduction Nest is a framework for building Node.js server-side applications. It uses progressive JavaScript, built-in TypeScript (but allows code to be written in pure JavaScript), and combines the elements and ideas of OOP (object-oriented programming), FP (functional programming) and FRP (functional response programming). Many of th ...

Posted on Fri, 03 Dec 2021 03:29:47 -0500 by anand_ragav

Mouse events keyboard events

catalogue 1, Common mouse events 1. Common mouse events 3. Picture following mouse movement case   2, Common keyboard events 1. Common keyboard events 2. Keyboard event object 3. Simulated express order number case 1, Common mouse events 1. Common mouse events Mouse eventTrigger conditiononclickLeft mouse button triggeronmouse ...

Posted on Fri, 03 Dec 2021 01:52:52 -0500 by Azarath

Element viewing area client series / element scroll series / Case: imitation Taobao fixed right sidebar

Element viewable client series Client is translated as the client. We use the relevant attributes of the client series to obtain the relevant information of the element visual area. Through the relevant attributes of the client, we can dynamically obtain the border, size, etc. of the element. client family properties      effect ...

Posted on Fri, 03 Dec 2021 01:23:33 -0500 by jeremuck

Super detailed js array method (summary)

The built-in method of array that we often use in ordinary development is also the most frequently asked thing in the interview. Array is the most commonly used data set in js. There are many built-in methods. Mastering these methods can effectively improve our work efficiency and have a great impact on our code quality. Create array Literal ...

Posted on Fri, 03 Dec 2021 00:02:23 -0500 by markster

[JavaScript] day 4 [for double loop] [function]

Double for loop Dual for loop overview Loop nesting refers to defining the syntax structure of a loop statement in a loop statement, such as for In a loop statement, you can nest another one for Loop, like this for Loop statements are called double for Cycle. Double for loop syntax for(Initial of external circulation;Conditions of exter ...

Posted on Thu, 02 Dec 2021 23:37:23 -0500 by php_gromnie

Shangpinhui project notes

2021/12/2 1. vue file directory analysis public folder: static resources. When webpack is packaged, it will be packaged into dist folder intact. pubilc/index.html is a template file, which is used to generate the entry file of the project. JS and CSS packaged by webpack will also be automatically injected into the page. When our browser acces ...

Posted on Thu, 02 Dec 2021 22:07:01 -0500 by pytrin