Category : Programmer

Preface Some beginners may be puzzled by the usage scenarios of computation attributes and listening attributes. This article mainly introduces the usage, usage scenarios and the differences between the two.Please stamp the code of this articleGithub blog, the paper finally feel shallow, everyone began to knock more code! Calculation attribute Introduction The calculation attribute is ..

Read more

Introduction Front-end development speed is very fast, pages and components become more and more complex, how to better implementState logic multiplexingIt has always been an important part of the application, which directly affects the quality of the application and the ease of maintenance. This article introducesReactThree Implementations UsedState logic multiplexingThe paper also analyzes their implementation ..

Read more

Introduction ReactVirtual ofDOMAndDiffThe algorithm isReactThis part of the source code is also very complex. Understanding the principle of this part of knowledge will help you to master it more deeply.ReactIt is very necessary. Originally wanted to virtualDOMAndDiffThe algorithm is put into an article and the virtual is finishedDOMIt is found that the article is already ..

Read more

Opening remarks Front-end development is a very special industry, its history is actually not very long, but the complexity of knowledge and the speed of technology iteration are incomparable to other technologies. winterIn his “heavy learning front end” course mentioned: Up to now, front-end engineers have become one of the important positions in the research ..

Read more

Preface ES6 provides many new features, but we don’t use them very often in our actual work. According to the 28 rule, we should devote 80% of our energy and time to the study of these 20% core features, and we will get great results with twice the result with half the effort! Writing articles ..

Read more

Preface The trigger right of an event belongs to the user most of the time, and problems may arise in some cases: Sending data to the background, users frequently trigger, causing pressure on the server Some browser events: window.onresize, window.mousemove, etc. are triggered with very high frequency, causing browser performance problems. If you encounter these ..

Read more

Preface This article mainly introduces DOM Event level, DOM event model, event flow, event proxy and common applications of event objects, hoping to give you some help and inspiration! The starting address of this article isGitHub blog, writing articles is not easy, please support and pay more attention! I. DOM Event Level DOM levels can ..

Read more

Preface AJAX, or “Asynchronous Javascript And XML,” refers to a web page development technology that creates interactive web page applications. AJAX is a technology for creating fast dynamic web pages. It enables developers to only obtain data from servers (instead of images, HTML documents and other resources). The transmission of Internet resources has become unprecedented ..

Read more

A preface In the traditional Ajax era, network requests such as API are made through XMLHttpRequest or the encapsulated framework. However, the configuration and calling methods are very chaotic and are not friendly to beginners. Fetch, which we introduced today, provides a better alternative. It not only provides a simple and logical way to obtain ..

Read more