[secure TypeScript] interface

Hello, I'm A bowl week , a front end that doesn't want to be drunk. If you are lucky enough to get your favor, I am very lucky~ Write in front One of the core principles of TS is to check the type of structure. The function of interfaces is to name these types and define contracts for your code or third-party code. Finally, it is compiled ...

Posted by bobbythenewb on Thu, 16 Dec 2021 01:21:00 +0100

[exercise case 7] React encapsulates a button component with ant design

catalogue preface Introduction Parent child component call Parent component First step Step 2 Subcomponents Data presentation Function key points 1 Demonstration effect Functional points 2 Demonstration effect Functional points 3 Presentation results summary preface I'm a ballad. I have a brother. At the peak, I ranked 19 i ...

Posted by ankrah on Wed, 15 Dec 2021 23:57:39 +0100

The difference between var, let and const

The difference between var, let and const General differences: const defined variables cannot be modified and must be initialized. Variables defined by var can be modified. If they are not initialized, undefined will be output and no error will be reported. Variables defined by var have no block concept and can be accessed across favorit ...

Posted by flatpooks on Wed, 15 Dec 2021 20:09:29 +0100

Development and implementation of chrome extension

preface Learn about Chrome plug-ins The chrome extension can add additional functions to the chrome browser. It can inject css into a web page or execute js methods. At the same time, it can also realize a separate function. At the same time, it will not be affected by cross domain when making network requests. So what it can achieve mainly d ...

Posted by jrottman on Wed, 15 Dec 2021 18:22:26 +0100

Knowledge system of Web front end development engineer_ 22_JavaScript core

1, Closure Both global variables and local variables have their own advantages, but they also have their own shortcomings. The advantage of global variables is that they can be reused, but they are easily polluted (note that all forms of global variables are prohibited in general companies). Although local variables will not be polluted, they ...

Posted by hush2 on Wed, 15 Dec 2021 17:42:40 +0100

[interview] advanced application questions to test your familiarity with Promise

Author: Hannah LinSource: mediumThere are dreams and dry goods. Wechat search [Daqian world] pays attention to this bowl washing wisdom who is still washing dishes in the early morning.This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, materials and my series of articles for the inte ...

Posted by phpion on Wed, 15 Dec 2021 14:31:02 +0100

Nuxt. The use of JS

5. View 5.1 default template (understand) To customize the default html template, you only need to create an app under the application root directory html file. Default template: <!DOCTYPE html> <html {{ HTML_ATTRS }}> <head {{ HEAD_ATTRS }}> {{ HEAD }} </head> <body {{ BODY_ATTRS }}> {{ APP }} ...

Posted by velanzia on Wed, 15 Dec 2021 13:45:26 +0100

react source code analysis 10 Commit phase

react source code analysis 10 Commit phase Video Explanation (efficient learning): Enter learning Previous articles: 1. Introduction and interview questions 2. Design concept of react 3.react source code architecture 4. Source directory structure and debugging 5. JSX & Core api 6.legacy and concurrent mode entry functions 7.Fiber a ...

Posted by tate on Wed, 15 Dec 2021 12:19:05 +0100

Let you learn DOM event flow

1. Common event binding methods1.1 object attribute binding<button id="btn">Point me</button> <script> var btn = document.getElementById("btn"); btn.onclick = function() { console.log("Event trigger") } </script>1.2 addEventListener() binding<button id="btn">Point me</button> <script> var bt ...

Posted by Swede78 on Wed, 15 Dec 2021 05:39:40 +0100

Basic understanding and Usage Summary of Electron

Electron process Electron inherits the multi process architecture from Chromium, which makes the framework very similar to a modern web browser Why? It's not a single process Web browser is an extremely complex application. In addition to their primary ability to display web content, they have many secondary responsibilities, such as managin ...

Posted by jaronblake on Wed, 15 Dec 2021 05:28:00 +0100