Efficient entry css3

Reference css file If there are many, many and complicated styles in our style, we can create a new css file and put it in html in the same directory, and then enter it in style <link href="./mystyle.css" rel="stylesheet" type="text/css"/> You can reference css files in html files, which is more convenient for modifying large files!   ...

Added by emrys404 on Sat, 12 Feb 2022 14:39:42 +0200

The 8th web front-end training (JavaScript)

1 form Using front-end js to verify the form can reduce a lot of unnecessary trouble and improve user satisfaction. Otherwise, as soon as you submit data, you will go directly to the back-end server and find that you didn't fill in the name after a series of verification, which will waste a lot of time. 1.1 get form     & ...

Added by englishtom on Sat, 12 Feb 2022 14:31:31 +0200

JavaScript knowledge points sorting - function

catalogue 1, Concept of function 2, Use of functions 2.1 function declaration 2.2 calling functions 2.3 function encapsulation 3, Parameters of function 3.1 formal parameters and arguments 3.2 mismatch between the number of function formal parameters and real parameters 4, Return value of function 4.1 return statement 4.2 return term ...

Added by onlinegs on Sat, 12 Feb 2022 12:11:41 +0200

[js basic review] Prototype and prototype chain

catalogueWhat is the objectConstructorPrototype objectImplement inheritance and different inheritance methodsobjectWhy object-oriented programmingThe code logic migration is more flexible, the code reusability is high, and the code is highly modularConstructorfunction Person(name) { this.name = name this.getName = function(name) { ...

Added by 1veedo on Sat, 12 Feb 2022 11:03:21 +0200

Use three in Vue JS create a 3D conference room model

Chapter II This chapter mainly creates 3D models, which are divided into three JS built-in basic model and external import model Basic model The basic solid model is probably the solid shape of the foundation such as cube, cuboid and ball. First, the floor and wall of our conference room are actually the basic cuboid. For this basic solid ...

Added by baffled_in_UK on Sat, 12 Feb 2022 06:54:42 +0200

Understand prototype / prototype chain

For the front-end partners, whether novices or old birds, I think they have been tossed about the prototype. It's always a vague feeling. If the prototype doesn't understand, how can you say you're the front-end siege lion?About objectsWhen it comes to object-oriented (OO), your first reaction must think of concepts such as class, object and in ...

Added by Fitzlegend on Sat, 12 Feb 2022 05:28:30 +0200

3w long text takes you from JS objects all the way to classes

ECMA-262 defines an object as an unordered set of attributes. We can think of objects in JS as a hash list, where the content is a set of key-value pairs, and the type of value can be data or function. 1. Understanding Objects The usual way to create a custom object is to create a new instance of a new Object, then add properties and methods ...

Added by freakstyle on Sat, 12 Feb 2022 04:11:05 +0200

JavaScript built-in object - String object

Basic packaging content To facilitate the operation of basic data types, js also provides three special reference types : String, number, Boolean The basic wrapper type is to wrap simple data types into complex data types Thus, there are properties and methods The principle is Wrap complex data into simple types Use this complex data ty ...

Added by flashpipe on Sat, 12 Feb 2022 03:19:32 +0200

Simple implementation of lazy loading of component data

VueUse component data lazy loading 1. Understanding Objective of this section: to understand what component data lazy loading means from a practical point of view Think about two questions Where are our general data requests initiated?What are the characteristics of life cycle hook function? At present, ajax requests in each componen ...

Added by idealbrain on Sat, 12 Feb 2022 02:22:12 +0200

[ES11(2020)] optional chain operator and null value merging operator

Optional chain operator Optional chain operator (?.) It is not necessary to verify whether the value of each link in the chain is explicitly valid, but whether it is allowed to read the value of each link in the chain The function of the operator is similar to The difference of chain operator is that it will not cause an error when the referen ...

Added by blakogre on Sat, 12 Feb 2022 01:03:44 +0200