Data sharing between Vue components
Introduction: This article will talk about an important problem in Vue, that is, how to share data between components? As we said before, each component is independent of each other and can be used by importing components and registering components. How can we transfer data between components?
1. Relationship between components
The relat ...
Posted by anauj0101 on Tue, 28 Dec 2021 04:07:34 +0100
Day13 - DOM operation of JavaScript, several widths and heights of the page, return to the top and bottom, and operation knowledge related to labels
1, DOM Foundation
DOM: document object model, which is used to manipulate page labels and css DOM is actually part of BOM
Basic operations of DOM:
console.log(document) ; //Print entire page
console.log(document.documentElement) ; //Print html
console.log(document.body) ; //Print body content
console.log(document.head) ; //Pr ...
Posted by MidOhioIT on Tue, 28 Dec 2021 03:19:58 +0100
Ajax - native JS implements Ajax requests
1, The core of Ajax: XMLHttpRequest
Concept: XMLHttpRequest is a built-in constructor in the browser (belonging to the category of BOM and DOM) to create objectsFunction: used to initiate Ajax requests is the core principle of Ajax
1. Send the request using XMLHttpRequest
Parsing ajax requests
axios({
url:'Request address',
method:' ...
Posted by bengaltgrs on Mon, 27 Dec 2021 23:02:59 +0100
[JavaScript in front-end tutorials] 10_DOM programming details table operations and events
JavaScript from getting started to mastering video through train:
[1-200] JavaScript video tutorial, from introduction to mastery, with more cases of practice, easy to understand!
[201-300] JavaScript video tutorial, from introduction to mastery, with more cases of practice, easy to understand!
1, JavaScript operation table
...
Posted by jamz310 on Mon, 27 Dec 2021 21:34:02 +0100
css coupon and card coupon style drawing (with shadow and sawtooth)
Recently, I was working on a small program project like a mall. Cards and vouchers are indispensable for the mall. At first, I planned to cut the UI, but I found it not so convenient, so I made a fuss by referring to various materials. Without much nonsense, I went to the renderings first: It can be seen from the effect drawing that the coupon ...
Posted by Desdinova on Mon, 27 Dec 2021 14:09:43 +0100
antd Tree tree control - after incomplete selection of child nodes, you want to obtain the value of the parent node and interact with the back end
Recently, there is a requirement for a permission tree, and the structure of the tree is relatively deep. If you want to implement it, you can obtain the value of the parent node and pass it to the back end after incomplete selection of the child node.
After incomplete sub node selection, you want to obtain the value of the parent node
As sho ...
Posted by jcarver on Mon, 27 Dec 2021 11:45:01 +0100
Blasting column - springboot2 X series of tutorials using InitBinder to handle the binding of request parameters
preface
When we develop the project, we need close cooperation between the front and rear ends to ensure the stability and efficiency of the project. The front end passes the request parameters to the back end through the URL interface, and the back end returns the corresponding response information according to these different request paramet ...
Posted by boombanguk on Mon, 27 Dec 2021 04:55:30 +0100
Filter chain, FilterConfig interface, and filter enables users to log in automatically
1: Filter chain Multiple Filter programs can be registered in a Web application, and each Filter program can intercept a URL. If multiple Filter programs intercept the same URL, these filters will form a Filter chain (also known as Filter chain). The Filter chain is represented by the FilterChain object. There is a doFilter () method in the Fi ...
Posted by webtuto on Sun, 26 Dec 2021 13:17:21 +0100
ES6 Decorator, core decorators js,Mixin,Trait
ES6 (xxx) Decorator, core-decorators.js, Mixin, Trait
[note] the Decorator proposal has been greatly revised and has not been finalized yet. I wonder if the grammar will change again. The following content is completely based on previous proposals and is a little outdated. After waiting for finalization, it needs to be completely rewritten ...
Posted by stemp on Sun, 26 Dec 2021 11:50:09 +0100
todo case - creating projects and components
analysis: ① : initialize todo project ② : create 3 components and internal code ③ : prepare the style file of styles ④: App.vue is introduced for registration. The outermost container class name is todoapp Prepare in advance: prepare the style file of styles (copy it from the preview materials) in app Vue introduction and use (there is a link ...
Posted by Jeyush on Sun, 26 Dec 2021 09:07:03 +0100