JavaScript built-in objects

JavaScript provides many common built-in objects, including Math, Date, Array, String, and so on. Familiarize yourself with built-in objects by querying documents Open the MDN website and find "Technology" - "JavaScript" in the navigation bar of the website. The effect is as follows. Scroll down the page and find Built ...

Posted by meow on Fri, 03 Dec 2021 10:41:40 -0800

Vue Foundation (listener)

What are listeners in vue During development, we defined data in the object returned by data, which can be bound to templat through interpolation syntax and other methods.When the data changes, the data bound in the template will be automatically updated to display the latest data. However, this change is transformed by automatically listening ...

Posted by vigge89 on Fri, 03 Dec 2021 10:33:09 -0800

three.js learning notes - Shadows

Shadows have always been a challenge in real-time 3D rendering. Developers must find skills to display real shadows under reasonable circumstances. Three.js has a built-in solution. Although it is not perfect, it is very convenient to use. How does shadow work? When you render once, Three.js will render each light that supports shadows. Those ...

Posted by kaiquej on Fri, 03 Dec 2021 10:12:18 -0800

Javascript high-order techniques [array]

Javascript high-order techniques [array] 1. Fastest generation of list of [1,2,3,..., n] It is very fast to generate numbers by using the subscript index of the list Array(10).fill(true).map((x,i)=>i+1); > (10) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] It can also be seen that Array(n).fill(1) can be used to quickly build a list with length n; ...

Posted by cirko on Fri, 03 Dec 2021 08:29:32 -0800

CmsWing source code analysis user authentication

2021SC@SDUSC The last observation of the user log is ended Today, let's analyze the auth.js file File location: controller/admin/auth.js   The amount of file information this time is not small, so it is decided to allocate analysis catalogue Rule update User Group Management Homepage Member management Administrator user group ...

Posted by afhouston on Fri, 03 Dec 2021 08:11:52 -0800

react component communication

react introduction and installation Chinese website: https://react.docschina.org/ Official website: https://reactjs.org/ introduce 1.react Is used to build web User interface. 2.Throughout react Almost all of them are used JavaScript Code development . 3.react It can scale freely in front of a class library or an entire framework. 4.author: ...

Posted by ReDucTor on Fri, 03 Dec 2021 07:37:36 -0800

Modularization related specifications

Modularization related specifications Modular overview Modularization is to encapsulate a single function into a module (file). Modules are isolated from each other, but internal members can be exposed through specific interfaces or rely on other modulesBenefits of modular development: facilitate code reuse, improve development efficien ...

Posted by JJ2K on Fri, 03 Dec 2021 04:26:53 -0800

Operators of js in ES6 (?.,?:,?,? =,)

1, Null merge operator (?) The null value merge operator (?) is a logical operator. When the operand on the left is null or undefined, it returns the operand on the right. Otherwise, it returns the operand on the left. The null merge operator (?) is different from the logical or operator (|), which returns the right operand when the left opera ...

Posted by Dane on Fri, 03 Dec 2021 01:58:58 -0800

Implementation, encapsulation and callback function of animation function

Animation function encapsulation Animation implementation principle: Core principle: continuously move the box through the timer setInterval() Implementation steps: Gets the current position of the boxAdd a movement distance to the box's current positionRepeat this operation with a timerAdd a condition for end timingNote that this element ...

Posted by Warboss Alex on Fri, 03 Dec 2021 01:38:13 -0800

The direction of this in JS and changing the direction of this

1, this point 1. Definitions this is a keyword used within the scope Global is rarely used, and most of it is used inside functions 2. Direction 2-1. Global usage When used globally, this points to window 2-2. Function usage Note: no matter how the function is defined, no matter where the function is, it only depends on the call of t ...

Posted by Russia on Fri, 03 Dec 2021 01:31:56 -0800