Added by webmasternovis on Wed, 22 Dec 2021 16:46:57 +0200
In the official documents, the two most important differences between calculated and method are emphasized
computed is a property call and methods is a function callcomputed has a caching function, but methods is not
Calculated properties are cached based on their dependencies and will be re evaluated only when their related dependencies chang ...
Added by sansoo on Wed, 22 Dec 2021 15:45:10 +0200
Basic summary of web apis
Basic summary of web apis
1, Web API introduction
1. Concept of API
API is an interface. It is simply understood that it provides programmers with tools to complete certain functions Generally speaking, if you want to charge your mobile phone, you need a charging interface,
2. Concep ...
Added by miasma on Wed, 22 Dec 2021 14:31:24 +0200
Added by dsartain on Wed, 22 Dec 2021 13:31:14 +0200
1, Why async / wait?
We all know that Promise solution is available. Why should ES7 propose a new async / wait standard?
In fact, the answer is also obvious: Promise has jumped out of the strange circle of asynchronous nesting and expressed more clearly in chain. However, we also found that if there are a large number of asynchronous requests ...
Added by Pyrite on Wed, 22 Dec 2021 12:37:25 +0200
Use of Let and Const
Let declared variables are only valid in the code block where the let command is located. const declares a read-only constant. Once declared, the value of the constant cannot be changed.
1. let command The let command has the following features: (1) Valid ...
Added by nonaguy on Wed, 22 Dec 2021 10:39:12 +0200
This article mainly summarizes the handwritten questions in 2021, which are from the front end of the year and the autumn entrance examination. The topic comes from the front end of Niu Kwai network. The statistical time is from the beginning of March to the end of October. The 15 companies came from Ali, Tencent, Baidu, bytes, USA ...
Added by InfiniteA on Wed, 22 Dec 2021 10:35:28 +0200
1. What is a decorator
Decorator is a class related syntax sugar used to wrap or modify the behavior of classes or class methods. In fact, decorator is an implementation of decorator pattern in design pattern
Take an example In the process of writing bug s in daily development, we often use anti shake and throttling, such as the fol ...
Added by 990805 on Wed, 22 Dec 2021 09:59:59 +0200
Ten common sorting algorithms can be divided into two categories:
Comparison sort: the relative order between elements is determined by comparison. Because its time complexity cannot exceed O(nlogn), it is also called nonlinear time comparison sort.Non comparison sort: it does not determine the rel ...
Added by eroticheretic on Wed, 22 Dec 2021 08:42:51 +0200