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 ..
This series of articles is《Node.js Design Patterns Second Edition》The translation of the original text and the reading notes were serialized and updated in GitHub.Synchronized translation links. Welcome to pay attention to my column, and subsequent blog posts will be synchronized in the column: Encounter’s Digging Column Programming Thinking of Zhihu’s Column Encounter Segmentfault front-end station ..
summarize For background development, logging is a very common development habit, which we usually usetry…catchCode blocks are used to actively capture errors. For each interface call, the time consumption of each interface call is also recorded so that we can monitor the server interface performance and troubleshoot problems. When I first entered the company, it ..
what isService Worker Service WorkerIn essence, it acts as a proxy server between the Web application and the browser, and also acts as a proxy between the browser and the network when the network is available. They are intended to, inter alia, enable the creation of an effective offline experience, intercept network requests and take ..
This week,Chrome 70The official version was released.Progressive Web Apps（PWA）Has been officially supported toWindows 10Platform, however, long before previous versions,ChromeHas passedchrome://flagsSupport to open the experimental function, has long been supported inWindows 10Installation on platformProgressive Web Apps（PWA）. Google said that the experience of web applications installed on the desktop is very close to that of local applications, ..
In the last articleLearning and Practice of Service Worker (2)-Brief Introduction of ——PWAAs already mentionedPWAThe origin, advantages and disadvantages of the, and through a simple example to illustrate how the desktop and mobile end will be aPWAInstalled on the desktop, this article will illustrate how to use it through an example.Service WorkerThe message push function ..
As we all know, direct manipulation of DOM is a performance-intensive matter for the front end. Many frameworks, represented by React and Vue, generally adopt Virtual DOM to solve the performance problem of frequently updating DOM caused by frequent state changes in increasingly complex Web applications. This paper implements a very simple Virtual DOM for ..
More articles Requirement 1: In a list page, the first time you enter, you request to obtain data.Click on a list item, jump to the details page, and then go back to the list page from the details page without refreshing.In other words, if you enter the list page from other pages, you need to ..
Recently, I developed a small recording program called “I-I” and decided to sum up the knowledge learned during this period from shallow to deep and share it with everyone. If there are any mistakes, I hope the bosses can point out. Directory Application for applets Use of Developer Tools Development of Small Programs Statistics Release ..
The year 2019 is coming soon, and students will have a hard time in 2018. No matter how everyone goes in 2018, 2019 will still be filled with fuel! Here, I have sorted out the technologies that I personally think will still be or will become mainstream in 2019 to share with you, including front-end, ..
When developing react programs, we often encounter such warnings, and then we think: Oh! Loop subcomponent forgot to add key ~ For convenience, we sometimes use the circular index as the key without thinking, but is this really good? What is the best value for key? In order to understand, this article will analyze “key” ..
1. Page loading process 1.1 Process of Loading a Resource Enter the URL in the browser address bar Browser View Cache (Strong Cache) Browser Parses URL Acquisition Protocol, Host, Port, path The browser assembles an HTTP(GET) request message The browser obtains the IP address of the domain name according to the DNS server Open a ..