1, Set set
1. Operation method
II. Map() set
1. Operation method
2. Traversal of map()
(1)for...of implementation traversal
(2) forEach() traversal
1, Set set
Set: a data structure similar to an array without duplicate values. Mainly used for Array de duplication , string de duplication.
1. Operation method ...
Posted by nemesis.2002 on Thu, 10 Mar 2022 16:47:01 +0100
preface❤️ The gentle sunset is always mixed with poetry and distance ❤️
1, PC side web page effects
(1) Element offset offset series
1.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.
Obtain the position of the element ...
Posted by Lautarox on Tue, 08 Mar 2022 20:06:24 +0100
I suddenly want to crawl CSDN's columns and save them locally. In order to have less impact, I specially select the front page of CSDN for display.Comprehensive information Where was this test point found? Click the hot article in the figure below, and then jump to the specific article
, and then click the column to enter
Cut the c ...
Posted by ciaranmg on Mon, 07 Mar 2022 02:07:17 +0100
preface❤️ How much talent a person has, how much humility will be engraved in his bones ❤️
(1) Registration event (binding event)
1.1 overview of registration events
one ️⃣ Adding an event to an element is called a registration event or a binding event. two ️⃣ There are two ways to register events: traditi ...
Posted by djwiltsh on Sun, 06 Mar 2022 21:50:52 +0100
ES6 introduces modularity, which is divided into two modules: export @ and import.
ES6 modular features:
(1) The module of ES6 automatically turns on the strict mode, whether you add use strict; to the module header or not;.
(2) The module can import and export various types of variables, such as functions, objects, strings, numbers, Boolean va ...
Posted by stormszero on Sun, 06 Mar 2022 09:58:29 +0100
Symbol is a new basic type; The main function is to define unique attribute names. This feature can also be used to protect private variables. Because the outside world cannot generate the same symbol, it cannot be accessed;
If you want to reuse this symbol, you can use the static method symbol for(value: string)； The Global Registr ...
Posted by Meissa on Sat, 05 Mar 2022 10:54:29 +0100
Github Project Demo
Three.js, Vue+Element UI, ES6
Recently made a 3D resume. Let's record the production process.
Sketch constructionDownload modelMaking mapsWrite codeWrite it at the back
My idea is to build a three-dimensional study, which includes two walls and a desk, similar to the follow ...
Posted by new_to_php2004 on Fri, 04 Mar 2022 22:11:08 +0100
Page refresh data lost
In vue, data, vuex store and other data are in memory. Once the page is refreshed, these data will be lost (or reset to the initial value), which will affect the user experience at some times.
If you want to make the data refresh not lost, you have to listen to the page refresh event, cache the data to ...
Posted by jarriola on Fri, 04 Mar 2022 13:03:15 +0100
1, What is web API?2, Events
2.1 concept2.2 three elements of event 3, Get element4, Operation element
4.1 get / modify element content
4.1.1 innerText4.1.2 innerHTML 4.2 get / modify element attributes4.3 get / modify form element attributes
4.3.1 value: the value of the ...
Posted by mr00047 on Tue, 01 Mar 2022 17:58:09 +0100
When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.prefaceLast article Interpretation of Vu ...
Posted by jikishlove on Mon, 28 Feb 2022 01:45:32 +0100