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

[project record] build pc Netease cloud music program with Vue electron - build basic page

After the project is created, you can start to write static pages. Before you start, first take a rough look at the official Netease cloud music program style to see which modules can be reused to improve development efficiency. Like tabbar, module title, some radio stations and mv modules can be reused. Another is to ensure that there are ...

Added by bizshop on Fri, 11 Feb 2022 04:36:51 +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

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

CSS learning notes

CSS Icon How to add icons The easiest way to add icons to an HTML page is to use an icon library, such as Font Awesome. Adds the name of the specified icon class to any inline HTML element (such as < I > or < span >). All icons in the following icon library are scalable vectors that can be customized using CSS (size, color, shado ...

Added by nemiux on Thu, 10 Feb 2022 20:32:16 +0200

Code explanation: The Ultimate Guide to the use of Python regular expressions

One of the main tasks of working with text data is to create many text-based features. People may want to find content in a specific format in the text, such as e-mail existing in the text, or telephone numbers in large text. Although it sounds cumbersome to implement the above functions, it can be made easier by using the Python regular ...

Added by mrvijayakumar on Thu, 10 Feb 2022 18:04:01 +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

Maximum Bug of ClipboardJS

Problem description The copy function has been added to OJ's website today. At the beginning, we used the native functions of JavaScript. The corresponding JavaScript code is as follows: function copyDivToClipboard(containerid) { if (window.getSelection) { if (window.getSelection().empty) { // Chrome window.getSelectio ...

Added by vandutch on Thu, 10 Feb 2022 15:26:04 +0200

Shallow copy and deep copy in js

In the process of front-end development, we often encounter the problems of shallow copy and deep copy, The following is a brief description of the concept, difference and implementation method of shallow copy and deep copy. concept Shallow copy: Shallow copy means that a new object accurately copies the attribute value of the original objec ...

Added by bing_crosby on Thu, 10 Feb 2022 13:34:32 +0200