Understand the direction of this in js thoroughly, without having to back hard.

First of all, it must be said that the direction of this is indeterminate when the function is defined. Only when the function is executed can it be determined who this is pointing to. In fact, this ultimately points to the object that called it. (There are some problems with this sentence, which will be explained later. Although most articles ...

Posted by ihsreal on Fri, 03 Dec 2021 12:05:17 -0800

How to use official SDK files to assist development

How to use official SDK files to assist development 1. First of all, what is SDK? SDK or SDK package refers to a software development kit synchronously launched by semiconductor manufacturers for their own chips. It can simply provide some files of application program interface API for a programming language, but it may also include complex har ...

Posted by st89 on Fri, 03 Dec 2021 12:00:31 -0800

Golang memory escape analysis

summary A variable is defined in Go. Whether it is allocated on the heap or on the stack. The official Go document tells us that it doesn't need to be controlled. They will analyze it. In fact, this analysis is escape analysis Generally speaking, when the pointer of an object is referenced by multiple methods or threads, we call the pointer a ...

Posted by jamessw on Fri, 03 Dec 2021 11:56:30 -0800

[Yugong series] December 2021: object oriented design principles - Dependency Inversion Principle (DIP)

Article catalogpreface1, Dependency Inversion Principle (DIP)2, Use stepsExamplesummaryprefaceThere are seven commonly used object-oriented design principles. These seven design principles are based on maintainability and reusability. These principles do not exist in isolation. They are interdependent and complementary. Following these design p ...

Posted by paulbrown83 on Fri, 03 Dec 2021 11:51:38 -0800

The simplest IO understanding

IO stream First, we should understand external memory, memory and cache io is divided into input and output: Personal understanding: Output stream: output the file from the idea Input stream: read the file to the idea Input and output can be divided into: Byte stream: the smallest data unit in a data stream is bytes Output: OutputSt ...

Posted by BinaryDragon on Fri, 03 Dec 2021 11:47:35 -0800

[toy] obtain the audio clip of station B video

The thing is, I have a little hobby that is not consistent with the social status of social animals - listening to musicals. Basically, I click to open the video on station B. I don't want to listen to music on Netease cloud or QQ, but on these music software, I either charge for the clips I want to listen to, or the version is not what I like, ...

Posted by MannyG on Fri, 03 Dec 2021 11:29:44 -0800

Introduction to SpringMVC and integration of Swagger

Introduction to Spring MVC Spring MVC is the framework design Srping provides for Web applications. SpringMVC is a typical textbook-style MVC framework, unlike Struts and others, which are variants or are not entirely mvc-based. Spring MVC has clear roles, detailed division of labor, and seamlessly combines with the Spring framework. As the m ...

Posted by scallywag05 on Fri, 03 Dec 2021 11:19:07 -0800

Summary of java serialization

Catalog What is object serialization Why serialization and deserialization are required Knowledge of serialization and deserialization What if some fields in Java serialization do not want to be serialized? Java Serialization Interface   java.io.Serializable Class refactoring using serialization and serialVersionUID Java Externaliza ...

Posted by utahcon on Fri, 03 Dec 2021 11:13:51 -0800

sqlite learning notes - incomplete

SQLite command Point command Use. help to get a list of point commands command option describe .backup ?DB? FILE Back up the DB database (the default is "main") to the FILE file. .bail ON|OFF Stop when an error occurs. The default is OFF. .databases Lists the name of the database and the files to which it is attached. . ...

Posted by step on Fri, 03 Dec 2021 11:11:37 -0800

elementUI framework component

elementUI framework learning notes 1. Create a Vue cli scaffold Initialization: vue init webpackInstallation package: npm installInstalling elementui: NPM I element UI - SInstall axios: npm install axios -SInstall Router: NPM install Vue router - s and configure routing.Introduce components and configure routing.Start project: npm run dev ...

Posted by miniature on Fri, 03 Dec 2021 11:00:44 -0800