HTML common tags

1. Introduction The core of HTML is its defined tags and elements. Tags mainly include three parts: Tag keywords. For example: p, h1, img, etc.The semantics expressed by the tag. For example, p label represents paragraph, h1 label represents primary title, etc.Common attributes and attribute values of tags. For example, the align attribute ...

Added by weedo on Fri, 28 Jan 2022 01:46:54 +0200

JS deep excavation: hand tear Promise detailed code complete introduction

catalog: 1,new Promise() 2,.then()And chain call 3,.resolve()and.reject() 4,.all()and.race() Before tearing Promise by hand, we have to understand the characteristics of Promise.First of all, Promise is essentially a constructor, which can create Promise object instances to meet the requirements of asynchronous programming.The Promise features ...

Added by divadiva on Fri, 28 Jan 2022 01:09:59 +0200

[Vue3] new Vue3 status management tool: Pinia

[Vue3] new Vue3 status management tool: Pinia New Vue3 status management tool: Pinia Vue3 has been released for some time. It adopts a new responsive system and builds a new Composition API. The surrounding ecology of Vue is stepping up the adaptation of this new system, and the official state management library Vuex is also being adapted. Th ...

Added by Sakujou on Fri, 28 Jan 2022 01:08:22 +0200

Vue Foundation Day 1

VUE Foundation 1. What is vue? At present, the front-end has three very popular frameworks, namely angularjs, reactjs and vuejs. Among the three, vuejs has the highest popularity at present, and the one who developed vuejs is you Yuxi, a Chinese. Association with other frameworks Learn from angular's template and data binding technologyLear ...

Added by alcoholic1 on Fri, 28 Jan 2022 00:06:48 +0200

[JS] several methods of array de duplication

There are many methods of array de duplication. Next, let's talk about several common methods: 1, includes method + for loop The includes() method is used to determine whether an array contains a specified value. According to the situation, if it does, it returns , true; otherwise, , false const array = [1,2,3,2,4,6,3,1, undefined, Na ...

Added by ikscovski on Thu, 27 Jan 2022 23:19:23 +0200

vue login to different accounts in the same browser and overwrite the token

There is no problem logging in different accounts with the same browser, but there may be major problems. The second login will overwrite the token of the first login, resulting in the second login user operating some data of the first login. Here is a solution. 1. Log in to account A in the login window, and then copy the same url to log in t ...

Added by bigshwa05 on Thu, 27 Jan 2022 22:51:50 +0200

Four ways of communication between react hook components

preface Since the official introduction of hook by react, many partners have changed from the old class component to hook component. However, there are still some differences between hook component and class component, so the following summarizes four parameter transmission methods 1, Father to son The child component receives the dat ...

Added by DaiWelsh on Thu, 27 Jan 2022 22:35:17 +0200

Dark horse front end notes 3--CSS

[reference course] dark horse programmer pink teacher's front-end introductory course, h5(html5)+css3 + Mobile front-end video course for zero Foundation: b station course link Course materials: materials and source code: Download link [PPT] link: https://pan.baidu.com/s/1jm1LUuk5NIM-PPhmAbjEkg Extraction code: sp39 Related materials: W3C-CSS ...

Added by scvinodkumar on Thu, 27 Jan 2022 21:00:24 +0200

Clear useEffect side effects

In the React component, we will execute the method in useEffect() and return a function to eliminate its side effects. The following is a scenario in our business. This custom Hooks is used to call the interface to update data every 2s.import { useState, useEffect } from 'react'; export function useFetchDataInterval(fetchData) { const [list, ...

Added by mgm_03 on Thu, 27 Jan 2022 20:36:29 +0200

10 minutes to understand the important features of ES6+(ES2015-ES2019)

ES2015(ES6) ES2015 is the sixth version of ECMA Script(JS) released in 2015, so it is also called ES6. Since then, ECMA Script has released a large version every year and added some important features, which we call ES6 +. This paper mainly summarizes the main features of ES2015-ES2019. A learning front-end children's shoe should be some comm ...

Added by shturm681 on Thu, 27 Jan 2022 16:00:50 +0200