HTML+CSS Foundation (solve the problem of high collapse)
High collapse problem caused by element separation from document flow
1. Problem Description: In the document flow, the height of the parent element is supported by the child element by default, that is, how high the child element is, how high the parent element is. However, when the child element is set to float, the child element will be ...
Posted on Sat, 04 Dec 2021 15:42:40 -0500 by simona_85
Iterators and generators
Refer to advanced programming 4
iterator
The for loop is the simplest iteration. The loop is the basis of the iteration mechanism. The loop can specify the number of iterations. The iterations are carried out on an ordered set, such as an array.
The array has a known length and can be obtained by index, so it can be traversed incrementally ...
Posted on Sat, 04 Dec 2021 14:51:21 -0500 by frymaster
Originally, ES7~12 added these attributes respectively
ES6, also known as ES2015, was released in 2015. Since then, some attributes have been added every year, named ES7~12 respectively. The release years correspond to 2016 to 2021 respectivelyES7includes methodThe include method is added to the array to judge whether an element exists in the array. Before this, indexOf is used to judge the subscri ...
Posted on Sat, 04 Dec 2021 14:42:50 -0500 by bk6662
Vue basic 3--vue component communication
1. vue assembly
1.1 vue components_ concept
Componentization: the idea of encapsulation encapsulates the reusable parts of the page into components, so as to facilitate the development and maintenance of the project
A page can be divided into components. A component is a whole. Each component can have its own independent structure style ...
Posted on Sat, 04 Dec 2021 13:53:23 -0500 by brucec
React, Vue, I want them all! React Hook implements 11 basic functions of Vue
prefaceHello, I'm Lin Sanxin. Because of the needs of the work project, last month, I began to use React to develop the project. Today, it's almost a month. I want to share with you how I realized some functions in Vue in React.As this rookie has not used React for a long time, please pay attention to any defectsNote: the version of Vue referre ...
Posted on Sat, 04 Dec 2021 01:46:45 -0500 by romanali
Hippy source code analysis -- hippy Vue
2021SC@SDUSC
sketch
Then, in the previous analysis, we returned to the index.js file of the runtime module from the render module. All the code of index.js is no longer put, but in the previous issue. This issue specifically analyzes where to introduce the corresponding code. At the same time, some very simple code will be skipped in the ...
Posted on Sat, 04 Dec 2021 01:02:19 -0500 by jpowermacg4
Syntax and data types in the basis of JavaScript language
Language foundation
Mainly based on ECMAScript version 6
grammar
The case sensitive variable test and the variable test are two different variables. The names of identifier variables, functions, attributes or function parameters follow the hump case, that is, the first letter of the first word is lowercase, and the first letter of each sub ...
Posted on Fri, 03 Dec 2021 19:51:15 -0500 by coja1
Vue basis (calculated attribute)
In the template, you can directly display some data in the data through the interpolation syntax. In some cases, we need to convert the data or display it after calculation. We can use the calculated option to calculate. At this time, some partners may ask, why should I define the function directly and call it again? This problem will be explai ...
Posted on Fri, 03 Dec 2021 17:52:10 -0500 by pbaker
HTML5 final assignment: management system website design - enterprise website background management system (35 pages) final assignment of HTML+CSS+JS web page design
HTML5 final assignment: management system website design - enterprise website background management system (35 pages) final assignment of HTML+CSS+JS web page design
Common web design topics include individuals, food, companies, schools, tourism, e-commerce, pets, electrical appliances, tea, home, hotels, dance, animation, stars, clothing, ...
Posted on Fri, 03 Dec 2021 16:51:33 -0500 by Moonspell
[JS elevation] summary of common array methods in JavsScript
Review on Array
”ECMAScript array is very different from arrays in other programming languages. Like arrays in other languages, ECMAScript array is also a group of orderly data, but different from other languages, each slot in the array can store any type of data. This means that you can create an array. The first element is a string, ...
Posted on Fri, 03 Dec 2021 12:18:54 -0500 by DGaleDavid