Learning notes of javascript advanced programming | 8.4 class
follow [front end Xiaoao] , read more original technical articles
class
The newly introduced class keyword in ES6 has the ability to formally define classes, and the concepts of prototype and constructor are still used behind it
Relevant code →
Class definition
Similar to function types, there are two main ways to define classes: cl ...
Posted by nivosh on Mon, 31 Jan 2022 21:35:11 +0100
How to create a simple CRUD application using only JavaScript
How to Create a Simple CRUD Application using only JavaScripthttps://www.encodedna.com/javascript/how-to-create-a-simple-crud-application-using-only-javascript.htm
You can use pure JavaScript to create basic single page applications. Today, you can find many comprehensive JavaScript frameworks for building complex front-end applications. I per ...
Posted by severndigital on Mon, 31 Jan 2022 18:27:46 +0100
JSON(json) detailed tutorial
1, What is JSON?
JSON is a format for storing and transmitting data.JSON is usually used to transfer data from the server to the web page.JSON refers to JavaScript Object NotationJSON is a lightweight text data exchange formatJSON is language independent: JSON uses Javascript syntax to describe data objects, but JSON is still language and ...
Posted by moonie on Mon, 31 Jan 2022 17:47:08 +0100
React advanced -- Hook learning notes
1. Hook introduction
Hook is a new feature added in React 16.8.0. You can use state and other React features in function components.
✌️ Hook usage rules:
Hook s are JavaScript functions, but there are two additional rules for using them:
Hook can only be called on the outermost layer of a function. Do not call in loops, conditional judgemen ...
Posted by JStefan on Mon, 31 Jan 2022 14:51:08 +0100
JQuery one stop explanation
Why use JQuery?
When using native js to obtain tags, it was once very troublesome, and the problem of blank documents should be considered. The method of obtaining tags is very single. It always needs to obtain the target tags through parent nodes and child nodes, and the animation effect of js is weak; JQuery encapsulates js. Many dom operati ...
Posted by s1akr on Mon, 31 Jan 2022 12:20:20 +0100
js basic ~ data type, operator, if, while, for
1. Run js in the page
(1)javascript, abbreviated as js, is a functional and weakly typed scripting language. (2) In a web page:
HTML is responsible for what is in the page. CSS is responsible for what the page looks like. JS is responsible for what the page can do. JS can control HTML and CSS
(3)Js runs in two ways in the page:
Wri ...
Posted by mwilson on Mon, 31 Jan 2022 10:06:47 +0100
Web: the layout of the header and footer of the home page of the mobile mall and the three properties of the flex project
Layout of header and footer of home page of mobile mall
Let's first demonstrate the three properties of the flex project 1. The scaling scale of the project and the base width
elementattributemeaningflex0 1 auto / initialBy default, it is forbidden to enlarge, allowed to shrink, and the width is automaticallyflex1 1 auto / autoAllow zooming i ...
Posted by geebo on Mon, 31 Jan 2022 07:50:44 +0100
CSS font styles
Font style properties
1, Font type
Font family can specify multiple fonts. When using multiple fonts, they will be arranged from left to right and separated by English commas', '.
1. Set a font
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content=" ...
Posted by mybluehair on Sun, 30 Jan 2022 21:27:45 +0100
Understanding BOM and DOM from browser architecture
Browser architectureJavaScript runs in the browser, BOM is the bridge between JavaScript code and browser, and DOM is used to operate various tag elements.BOM includes window, history, location, documentDOM includes Document (whole Document), Element (label Element), CharacterData (character data) and Attr (attribute), which can be further divi ...
Posted by lorddraco98 on Sun, 30 Jan 2022 18:00:21 +0100
Vue generates dynamic routes and assigns permissions (Ant Design Vue framework)
introduce
The front-end Shixian edits various information of the page and sends it to the back-end. When the front end requests, the back end needs to return the page information that meets the permission and instantiate the generated route.
The premise of configuring permissions is that the front end needs to write all pages and buttons firs ...
Posted by slweb on Sun, 30 Jan 2022 17:31:28 +0100