36 tips for Vue development
Transferred from: Micro reading https://www.weidianyuedu.com
preface
This paper lists 36 vue development skills; Subsequent vue 3 After X comes out, it will be updated continuously
1,require.context()
1. Scenario: if the page needs to import multiple components, the original writing method:
import titleCom from "@/components/home/t ...
Added by james182 on Sat, 26 Feb 2022 07:16:38 +0200
Object oriented programming of JavaScript
Constructor and prototype object
1. Constructor
Constructor: the constructor is mainly used to create an object and assign initial values to the members of the object.
function Person(name, age) {
this.name = name;
this.age = age;
}
var p1 = new Person('Zhang San', 18);
var p2 = new Person('Li Si', 19);
console.log(p1.name); // Outp ...
Added by therainmaker53 on Sat, 26 Feb 2022 05:27:08 +0200
TS common types for getting started with TypeScript
Previous chapter: 3. TS common types for getting started with typescript (2)
3.13 enumeration types
The function of enumeration is similar to that of literal type + union type combination. It can also represent a set of explicit optional values.
Enumeration: defines a set of named constants. It describes a value that can be one of these name ...
Added by David-fethiye on Sat, 26 Feb 2022 03:02:58 +0200
Spring MVC realizes file upload and download
File upload is one of the most common functions in project development. Spring MVC can well support file upload, but MultipartResolver is not installed in the context of spring MVC by default, so it cannot handle file upload by default. If you want to use spring's file upload function, you need to configure MultipartResolver in the context.
Fr ...
Added by eflopez on Fri, 25 Feb 2022 18:59:23 +0200
Vue source code learning - Virtual DOM+Diff algorithm
The virtual DOM + Diff algorithm is adopted in Vue, which reduces the number of operations on DOM and greatly improves the performance. Today, let's talk about the implementation logic of this part of Vue in detail. I hope it can help the little partners who do not understand this part understand this part and play it purely by hand. I hope you ...
Added by Murciano on Fri, 25 Feb 2022 17:24:08 +0200
PC side web page effects
PC side web page effects
1, Element offset offset series
1. offset overview
Offset translates to offset. We can dynamically get the position (offset) and size of the element by using the relevant attributes of offset series
Gets the distance of the element from the position with the positioning parent elementGets the size (width and hei ...
Added by Gafaddict on Fri, 25 Feb 2022 16:58:52 +0200
Object data type - object
Object data type - object
Understanding Object data types - Object
1. Is a data type in js and a complex data type
2. It is a "box" that carries data
3. It is an unordered data set and a set of key value pairs
Creation of object data type
1. Create objects literally
(1) create an empty object: var obj = {}
var obj ...
Added by lazytiger on Fri, 25 Feb 2022 16:48:21 +0200
Mind mapping: from Xmind to docsify blog
Today, I finally finished the exam that should have been finished a year ago. Tomorrow, I'm ready to start the lying down life (FOG) of my senior. Reviewing genetic engineering again is rewarding. In addition to professional progress, I also found this cold knowledge.
Tossing results: Click to view
Steps:
Configure your blogExport xmind to ...
Added by Mehdi on Fri, 25 Feb 2022 16:23:53 +0200
JS data type - reference type
JS data type - reference type
···
1. Array
1.1 basic syntax of array
1.1.1 array introduction
Function: an array variable can store multiple dataComposition of array memory
Elements: data in an arraySubscript: the position of data in the array (subscript will not jump)Length: number of elements
1.1.2 array syntax
let variable name ...
Added by rhasce on Fri, 25 Feb 2022 14:44:23 +0200
[JavaScript] day 21 (cookie)
cookie
1, Callback function
A function is passed to another function as a parameter, function B is used as a parameter of function a, function B is called inside function a, and function B is called the callback function of function a.
Syntax:
function A(callback){
callBack()
}
B Is also a function
A(B)
Syntax 1:
function success(cal ...
Added by bongbong on Fri, 25 Feb 2022 11:59:59 +0200