programmer group

A complete interpretation of promise

About promise Is an object that holds the future execution results of asynchronous events. It’s not a new technology, it’s a technology that can be usedSpecification for optimizing the coding style of asynchronous programming. It was first born in the community to solve problems in JavaScript codeThere are too many nested levels of callbacks and stacking of error handling logic. Using promise object to encapsulate...

programmer group

CSS transition and animation

This article mainly introduces the CSS transition and animation related properties. CSS transition 1、 DefinitionTransition property: you can define different transition effects when an element switches between different states. It is a shorthand property of transition property, transition duration, transition timing function and transition delay. Ie10 support, need to use prefix – MS -. 2、 Transition property...