ES6 --- detailed explanation of promise basic usage (resolve, reject, then, catch)

ES6 - Promise basic usage details Promise Is a constructor. It has familiar methods such as all, reject and resolve, There are also familiar methods such as then and catch on the prototype. So, when starting a Promise, start with a new one: let p = new Promise((resolve, reject)=> { setTimeout(()=> { resolve('Executio ...

Posted by rayfinkel2 on Sat, 22 Jan 2022 19:11:15 +0100

pixi tile wizard demo

pixi tile wizard demo (I) introduction This article is a demo of parallax scrolling and collision detection and a problem encountered when learning pixi tile wizard. catalogue Tiled Sprites 1.1 Creation method 1.2 difference 1.3 Offset value 1.4Texture offset code Parallax Scrolling 2.1 Texture accuracy deviation collision detectio ...

Posted by pbalsamo on Sat, 22 Jan 2022 17:08:38 +0100

[ES5] overview of new methods - foreach () - filter () - some () - map () - trim () - object defineProperty()

ES5 has added some methods to operate arrays or strings conveniently. These methods mainly include: Array methodString methodObject method 1, Array method Iterative (traversal) methods: forEach, map(), filter(), every() 1.forEach Executes the given function once for each element of the array. 1.1 writing method array.forEach( func ...

Posted by thefisherman on Sat, 22 Jan 2022 14:41:01 +0100

Front end frame VUE

1,VUE 1.1 general Vue is a front-end framework that eliminates DOM operations in native JavaScript and simplifies writing. We have also learned the back-end framework mybatis before. Mybatis is used to simplify jdbc code writing; VUE is the front-end framework, which is used to simplify JavaScript code writing. The day before yesterday, we ...

Posted by Zephyris on Sat, 22 Jan 2022 09:13:27 +0100

Employee management system document [full details of basic function development]

1. Home page implementation 1.1. Access index Because the static files under the template package cannot be accessed directly, they need to be accessed indirectly; View jump is required; Create a new config package in the main program statistics directory to store your own configuration classesCreate your own configuration class MyMvcCon ...

Posted by zszucs on Sat, 22 Jan 2022 06:43:05 +0100

Java Web Learning Notes 2 (use of jQuery, common methods, selectors and filters)

Java Web Learning Notes 2 javascript regular expression regfxp object Mode 1: var putt=new RegExp("e");//Indicates that the required string must contain the string e var str="abcde"; alert(putt.test(str)); Mode 2: var putt=/e/; var str ="abcde"; alert(putt.test(str)); var putt=/{abc}/;//Indicates ...

Posted by davestewart on Sat, 22 Jan 2022 03:02:55 +0100

React learning notes - component communication

1, Component communication concept In React, components are independent and closed units. By default, the data in component state is private data, and components can only use their own data. However, in the actual project development process, our page is composed of multiple components, and these components inevitably share some data. This pro ...

Posted by RClapham on Fri, 21 Jan 2022 23:27:30 +0100

[the second youth training camp - front end field in winter vacation] - Notes on "front end animation implementation"

I moved my notes on Nuggets: Front end animation implementation,Personal blog Basic principles of animation What is animation Animation is a process of creating motion illusion and change illusion by quickly and continuously arranging continuous images with little difference from each other. ——Wikipedia fastContinuous ...

Posted by matthijs on Fri, 21 Jan 2022 20:45:46 +0100

Human resource management system of Web project

Project Gitee address Blog address Project requirements Human resource management system positioning The realized human resource management system serves shareholders, employees and interns.By realizing the functions of each module, the company's personnel joining, internal transfer and resignation personnel change are carried out through ...

Posted by stuartbaggs on Fri, 21 Jan 2022 20:43:25 +0100

Website development advanced anti shake throttling

1, Foreword - why anti chattering or throttling The realization of anti chattering or throttling is mainly based on the following purposes: Reduce server pressure when querying in time.Frequently perform DOM operations, resource loading and other heavy behaviors, resulting in UI pause and even browser crash.The requirement is to perform ...

Posted by Joseph Witchard on Fri, 21 Jan 2022 16:22:31 +0100