Compilation module 5: implementation of directivetransforms
Source location: vue-next/packages/compile-core/src/transforms/vOn.ts vue-next/packages/compile-core/src/transforms/vBind.ts
Here, the transform module has been basically implemented, but it needs to deal with v-on and v-bind. Take this as a simple example to see what instruction compilation will do
Explain
directiveTransforms is also a ki ...
Posted by member123 on Tue, 23 Nov 2021 01:44:56 -0800
2021 Aizhi Pioneer - infrared learning module (air conditioner remote control)
[this article is participating in the "2021 Aizhi Pioneer - Essay Contest"] https://mp.weixin.qq.com/s/I2s99dZpbP0QpMiKFneYJA
preface
Two sensors were made before 2021 Aizhi Pioneer - human presence sensor - CSDN community and DIY smart home from scratch - intelligent light sensor based on ESP32_ Inspired desktop blog - CSDN blog As a ...
Posted by barbgd on Tue, 23 Nov 2021 01:44:26 -0800
Understand the modularity of NgModule~Angular
catalogue
@Class of NgModule() decorator
Common system modules of Angular
1. Example - create and import feature modules
order.module.ts
list.component.ts
app.module.ts
app.component.html
2. Example - inert loading module
order.module
order-routing.module
Configure in the top-level routing AppRoutingModule
app.component.html
im ...
Posted by optimiss on Tue, 23 Nov 2021 01:33:30 -0800
Compilation module 7: compile implementation
Source location: vue-next/packages/compile-core/src/compile.ts
The last is the main entrance of the whole module. Just integrate the previous modules
Write it down
The code is given directly here, but I will elaborate more
// Plug in preset
function getBaseTransformPreset() {
return [
[transformElement, transformText],
{
o ...
Posted by CONTEMAN on Tue, 23 Nov 2021 01:24:36 -0800
Keep alive to achieve high availability of httpd server
1. Introduction to keepalived
Keepalived software was originally designed for LVS load balancing software to manage and monitor the status of each service node in LVS cluster system. Later, it added VRRP function that can realize high availability. Therefore, in addition to managing LVS software, keepalived can also be used as high availab ...
Posted by astarmathsandphysics on Tue, 23 Nov 2021 01:03:46 -0800
C + + classes and objects
1, Class Constructor: the constructor is a special member function with the same name as the class name. It is automatically called by the compiler when creating a class type object to ensure that each data member has an appropriate initial value and is called only once in the life cycle of the object. Characteristics of constructors: construct ...
Posted by siobhan on Tue, 23 Nov 2021 00:53:15 -0800
Python 3 simply uses xmlrpc to implement RPC
catalogueRPCxmlrpc LibrarySimple server sideSimple clientMultithreaded accessFile upload & DownloadRPCLet's talk about what RPC is first. RPC (Remote Procedure Call) - Remote Procedure Call is a protocol that requests services from remote computer programs through the network without understanding the underlying network technology. RPC Prot ...
Posted by Ace_Online on Tue, 23 Nov 2021 00:28:32 -0800
@What is the principle behind lombok annotations? Let's get closer to the custom Java annotation processor
This article introduces how to customize the Java annotation processor and related knowledge. After reading this article, you can easily understand and understand the application of the annotation processor of major open source frameworks."Garden tour is not worth it"Should pity clogs tooth print moss, small buckle firewood door can't ...
Posted by Iconoclast on Tue, 23 Nov 2021 00:17:27 -0800
100 lines of code, easy to handle the draft box in the text editor
This article is excerpted from "design patterns should be learned this way"1 use memo mode to realize the draft box functionWe have all used the rich text editor in web pages. The editor usually comes with operations such as draft box and undo. The following code is used to realize such a function. Suppose we publish an article in the ...
Posted by discobean on Mon, 22 Nov 2021 23:37:01 -0800
ES6 learn the let and const commands in Chapter 1
preface:Recently, I began to read teacher Ruan Yifeng's introduction to ECMAScript 6 (hereinafter referred to as the original text), learn the knowledge of ECMAScript 6 (hereinafter referred to as ES6), sort out some knowledge points and my understanding to make article notes. According to the chapter as a unit, a chapter is a note.The article ...
Posted by David03 on Mon, 22 Nov 2021 23:34:38 -0800