01,node. JS FS is a file system module

1. What is a fs file system module [explanation]: the fs file system module is node JS is an official module for operating files. It provides a series of methods and attributes to meet the basic needs of users for file operation. [basic usage]: Import directly after installing node const fs = require ('fs') 2. Reads the contents of the sp ...

Added by davidx714 on Fri, 11 Feb 2022 05:50:13 +0200

What are server rendering (SSR), client rendering

What are server rendering and client rendering 1, Introduction 1.1 server side rendering (SSR) sketch:                            .      when you right-click to view the source code, th ...

Added by Fireglo on Fri, 11 Feb 2022 04:14:23 +0200

Differences among calculated, Methods and Watch in vue

1. Calculated attribute It is very convenient to use js expressions in the template. The purpose of the design is only for simple operation. Putting too much logic in the template will make the template too heavy and difficult to maintain. Therefore, for any complex logic, you should use computational properties. <!-- Complex operation --& ...

Added by KPH71 on Thu, 10 Feb 2022 23:53:53 +0200

How to use the novice guidance tool intro.com across pages (across routes) in vue project js

Functional requirements The company requires novice guidance on its own platform, or cross page and cross routing. I found the novice guidance plug-in on the Internet and finally chose intro JS to use, maybe because it looks a little good, so throw it away. Most of what I write are ideas. If I can understand it, I should be able to easily ...

Added by adyre on Thu, 10 Feb 2022 23:08:00 +0200

The sixth web front-end training notes (HTML)

I array Definition of array 1. Implicit definition Var array name = []; 1 / empty array var array name = [value 1, value 2, value 3...]; 2. Direct instantiation var array name = new array (value 1, value 2, value 3...); 3. Define the array and set the length var array name = new array (size);                      Array operation The subscript o ...

Added by apan on Thu, 10 Feb 2022 23:05:14 +0200

Vue framework 2 Initial attempt of X, dynamic binding, responsive data, event modifier, (including small exercises)

  catalogue Dynamic binding style (supplement to v-bind): Pass class Use the form of variables or expressions     2. Object form  3. Array form Through style 1. Variable or expression 2. Object form 3. Array form Dynamic binding style (supplement to v-bind): Pass class Use the form of variables or expre ...

Added by digioz on Thu, 10 Feb 2022 21:00:41 +0200

Symbol usage of js

Symbol 1. Symbol usage let s = Symbol(); console.log(s); Symbol s will never be the same Symbol is a string that will never appear the same. When we declare the same variable, if it occurs repeatedly, only the variable declared for the first time will be printed. let a = Symbol(); let b = Symbol(); console.log(a == b); // false You can' ...

Added by killsite on Thu, 10 Feb 2022 18:37:36 +0200

JS Foundation: four inheritance methods in JavaScript & instanceof implementation

JS Foundation: four inheritance methods in JavaScript & instanceof implementation preface If you don't know much about the prototype chain and type judgment of JS, it is recommended that you first read the following two articles and then come back to understand the principle and purpose of this article Prototype: Prototype Chain Foun ...

Added by AliasXNeo on Thu, 10 Feb 2022 16:48:11 +0200

Two way binding of Vue data

The core of realizing bidirectional data binding in vue is v-model Example: <input type="text" name=" " v-model="userName"> When the content in the input box changes, such as the user enters hello world in the view, we will get the value entered by the user in the model layer, that is, where we use js to process the logic code. On the ...

Added by lepad on Thu, 10 Feb 2022 15:49:30 +0200

JavaScript process control statement

JavaScript process control statement 4.1 definition of statement In ECMAScript, all code is composed of statements. A line of code is a simple statement. In form, it can be a single line statement or a compound statement surrounded by a pair of braces "{}". The compound statement contains several simple statements, which can be trea ...

Added by Betty_S on Thu, 10 Feb 2022 15:05:53 +0200