Archive: 2022

0

Http module

http module The http module is officially provided by Node.js and is used to create a web server module. Through the http.createServer() method, you can easily turn an ordinary computer into a Web s

0

Split file example, Regex

Case Requirements The file that needs to be split is an index.html file with HTML, style, and JS code mixed together. The requirement is to split this mixed file into three files, index.html, index.

0

Path route module

path path module The path module is officially provided by Node.js and is used to process paths. It has methods for dealing with paths, such as path.join() to join paths, path.basename() to parse fi

0

Dynamic route combine

The reason for the problem with the path When using the fs module to operate files, if the provided operation path is relative path starting with ./ or ../, the problem of dynamic path splicing erro

0

fs module, read

**Write content to the specified file: fs.writeFile() ** 1fs.writeFile(path, data[, options], callback) Parameter 1: Required parameter, string, indicating the path of the file. Parameter 2: Requir

0

fs module, read

fs filesystem module The fs module is a module for manipulating files and has a series of methods and properties. Such as fs.readFile() fs.writeFile(). Import fs module Before using the fs module

0

Installation

Installation should select LTS version Node.js The official website has two installed versions, LTS and Current. LTS is the long-term stable version. For the pursuit of stability and enterprise-leve

0

Introduction

Javascript related Components of JS in the Browser JS core syntax: variable/data type, loop/branch/judgment, function/scope/this, etc… WebAPI: DOM manipulation, BOM manip

0

Flex

flex layout features Traditional layout: good compatibility, cumbersome layout, limited, cannot be well laid out on the mobile side. flex is a one-dimensional layout. Flex flexible layout: easy to o

0

CSS skills 2

Variable Variables are defined with --, referenced with var(--varName), and can be accessed by JS. 123:root { //declare in the top root of css--variables and assign values --logo-size:60px;