How JS implements a fake new keyword (understand the relationship between new, prototype and constructor)

catalogue General use cases of new keyword: Constructor, constructor, instance, prototype object: What does the new keyword do? Implement a fake new keyword Interpretation of new keyword implementation method General use cases of new keyword: function A(a,b,c){ this.a=a; this.b=b; this.c=c; } let a = new A(1,2,3) console.l ...

Posted by amax on Tue, 16 Nov 2021 03:22:06 -0800

LCD1602 displays temperature symbols based on Arduino

LCD1602 display is based on Arduino This article mainly introduces the Arduino control LCD1602 display, specific hardware knowledge, working principle and sequence diagram. Many great gods have analyzed it in detail on the Internet, such as Reference I https://blog.csdn.net/Lucifer_min/article/details/112133408 Reference II https://blog.csdn ...

Posted by skypilot on Tue, 16 Nov 2021 02:41:03 -0800

Using swiper7 in vue3

Project scenario: I just used swiper6 in my vue3 project not long ago. There are more pits than rural mud roads. It's not official. I directly came to swiper7. Next, I'll teach you how to use it and let you avoid detours. In addition, swiper7 will not lose the server style after packaging = " swiper6 style lost after packaging Gene ...

Posted by lewisstevens1 on Tue, 16 Nov 2021 02:22:49 -0800

Chapter 10 network protocol and management configuration

3.5.7 sub network division Sub network division: divide a large network (with more hosts) into multiple small networks (with less hosts), reduce the number of host ID bits, increase the number of network ID bits, and borrow the network ID bit from the host ID bit The number of subnets divided is determined by the bits borrowed from the host I ...

Posted by Darghon on Tue, 16 Nov 2021 02:00:41 -0800

NFS file system - mount and optimize

1. View the mount configuration:cat /var/lib/nfs/etab see NFS Details of server-side configuration parameters cat /proc/mounts View client mount Mount parameter details for2. Description of NFS client mount parametersfg/bg default[fg],When the client performs mounting, you can choose to be in the foreground(fg)Execution or background(bg)imple ...

Posted by LowEndTheory on Tue, 16 Nov 2021 01:56:38 -0800

Nacos cluster construction of spring cloud microservices

Nacos cluster construction1. Cluster structure diagramOfficial Nacos cluster diagram:It contains three Nacos nodes, and then a load balancer agent three Nacos. Here, the load balancer can use nginx.Our planned cluster structure:Addresses of three nacos nodes:nodeipportnacos1192.168.150.18845nacos2192.168.150.18846nacos3192.168.150.18847The IP h ...

Posted by Jnerocorp on Tue, 16 Nov 2021 01:55:50 -0800

NFS operations and deployment

1 basic knowledge1.1 brief introduction and application scenariosBrief description NFS: network file system, which enables different host systems to share files or directories through the network. The client accesses the server by mounting the server directory locallyApplication scenario: When multiple web clusters provide external access thro ...

Posted by rich___ on Tue, 16 Nov 2021 01:53:29 -0800

Some contents of file operation

Close file fclose(fp); fp=NULL; Open file FILE* fp=fopen("xxx.xxx","xx"); The first parameter is the type of file set The second parameter has the following operationeffectfile does not exist"w" (write only)To output data, open a text fileCreate a new file"r" (read only)To output data, open an existing fileerror&quo ...

Posted by aliento on Tue, 16 Nov 2021 01:35:56 -0800

Interview questions of Spring transaction propagation mechanism

Transaction propagation refers to how the transaction runs when two transactions are called. spring defines seven propagation behaviors, which we will explain respectivelyPROPAGATION_REQUIREDIf there is A transaction, the current transaction is supported. If there is no transaction, A new transaction is started. For example, when calling method ...

Posted by veenasv on Tue, 16 Nov 2021 01:24:12 -0800

Process of actual online chat room of React all Hook project: add a live music broadcast?

Previously on: Actual online chat room course of React full Hook project (I): basic functions Actual online chat room course of React full Hook project (II): quotation and topic function text What should chat have? Background music, tea and wine, snacks, I can't realize the last two, but we can add a background music function to our online c ...

Posted by dudejma on Tue, 16 Nov 2021 01:14:21 -0800