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

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

[JS informal learning] - ES6 proxy

Proxy Proxy is used to create a proxy for an object to modify the default behavior of some operations. It can be understood as setting up a layer of "interception" in front of the target object. External access to the object must first pass through this layer of interception. Therefore, it provides a mechanism for us to filter and re ...

Posted by rsmith on Wed, 15 Dec 2021 13:35:02 +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

Netease cloud comment crawler (JS reverse)

About the js reverse crawler of Netease (crawling comments) This is the first blog on this site. There may be many deficiencies, which will be continuously revised later. I hope you will actively point out the mistakes 1. Preparation tools: pychramvscode (test JavaScript)node.jsAny browser (Google or Edge recommended) After doing this, make ...

Posted by halex on Wed, 15 Dec 2021 11:11:40 +0100

[JS reverse hundred examples] the second question of the anti climbing practice platform for netizens: JJEncode encryption

Focus on official account dry cargo WeChat public: K brother crawler, keep sharing crawler advance, JS/ Android reverse technology dry goods! statement All contents in this article are for learning and communication only. The packet capturing content, sensitive website and data interface have been desensitized. It is strictly prohi ...

Posted by gte806e on Wed, 15 Dec 2021 10:22:27 +0100

Introduction to Svelte -- implementing cross framework component reuse with Web Components

Use * * Svelte to develop custom cell components supported by VUE and React * * In the previous section, we learned how to use Svelte to encapsulate web components to enable the use of spreadsheet components between different pages. The benefits of cross framework reuse of Svelte encapsulated components are also obvious: 1. Using framework d ...

Posted by swasheck on Wed, 15 Dec 2021 09:19:33 +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

Information transfer mode between React components

When talking about React, you will think of a very important idea, that is, the idea of componentization. It will develop reusable parts into components to form relatively independent components. After componentization, you will also ask some questions. How will information be transmitted between components? The following describes the methods ...

Posted by slibob on Wed, 15 Dec 2021 02:21:22 +0100