Built in objects for JavaScript

  catalogue 1, Number 1. isFinite() 2. isInteger() 3. isNaN() 4. parseFloat() 5. parseInt() 2, String 1. indexOf() 2. replace() 3. search() 4. concat() 5. split() 6. slice() 7. substr() 8. substring() 9. includes() 3, Array 1. join() 2. push() 3. pop() 4. shift() 5. reverse() 6. filter() 7. forEach() 8. find() 4, Obje ...

Posted by Res on Fri, 21 Jan 2022 15:38:11 +0100

Learn web-day8 from 0

1. Review 2. Use of margin and padding Use of margin and padding Sets the gap between two elements There is no background color and border: you can use margin or padding If there is a border, use padding if the gap is within the border line and margin outside the border line If there is a background color, use padding if there is a background ...

Posted by TJaaaay on Fri, 21 Jan 2022 15:18:59 +0100

Detailed explanation of the use of React Hook

1: Introduction Hook is a new feature of React 16.8. It allows you to use state and other React features without writing class. hook introduction time (react version update event) - 2013 May 29 v0.3.0 Facebook Open source React ..... - 2014 October 28 v0.12.0 use BSD agreement+Additional patent license agreement- ...

Posted by MLJJ on Fri, 21 Jan 2022 14:57:20 +0100

Javascript modular tool require JS tutorial

Transferred from: http://www.w3cschool.cc/w3cnote/requirejs-tutorial-1.html, http://www.w3cschool.cc/w3cnote/requirejs-tutorial-2.html With the gradual enrichment of website functions, the js in the web page has become more and more complex and bloated. The original way of importing js files through script tags can no longer meet the current In ...

Posted by DataRater on Fri, 21 Jan 2022 14:42:24 +0100

vite + vue3 + setup + pinia + ts project practice

introduce A project developed using vite + vue3 + pinia + ant design Vue + typescript complete technical route, with second level development update launch, new vue3 composition api combined with setup to enjoy smooth development experience, new pinia state manager and excellent design experience (1k size), ant D barrier free transition to UI ...

Posted by zab329 on Fri, 21 Jan 2022 12:52:17 +0100

Ab initio front end --es6 (deconstruction and assignment of array)

Deconstruction assignment of array Basic Usage ES6 allows you to extract values from arrays and objects and assign values to variables according to a certain pattern, which is called deconstructing. es5 declares multiple variables at once var a = 1, b = 2, c = 3, ...; es6 declares multiple variables at once let [a,b,c] = [1, ...

Posted by playa4real on Fri, 21 Jan 2022 05:59:35 +0100

HTML learning notes

Hey,guys. I'm poem23 This is my study note on "Introduction to the front end of dark horse programmer pink teacher, h5(html5)+css3 + Mobile front end video tutorial for zero foundation" at station b, Link attached https://www.bilibili.com/video/BV14J4114768?p=1 , I hope my notes can help you. HTML What is a web page? Web si ...

Posted by PureEvil on Fri, 21 Jan 2022 04:48:26 +0100

Front end | custom component v-model: how Vue implements two-way binding

v-model is a common instruction in Vue, which is often used for data binding in forms. The following basic usage must be familiar to everyone. The value of the checked attribute in data will change in real time with the status of multiple selection boxes. <el-checkbox v-model="checked" /> But you may have heard that there is a "one- ...

Posted by fr600 on Fri, 21 Jan 2022 04:10:05 +0100

Connect the front-end exception monitoring system Sentry for the website

background As we all know, front-end anomaly monitoring is becoming more and more important in the actual production environment. By connecting the website to the front-end anomaly monitoring system, we can obtain the following benefits: Collect page error informationAuxiliary positioning code error locationFind the problem before the user re ...

Posted by me1000 on Thu, 20 Jan 2022 22:19:58 +0100

JS deep excavation: event mechanism Q & A - registered event listening, event response operation, bubbling and capture

catalog: 1,Event mechanism concept 2,Method of registering event listening 3,Event operation 4,Bubbling and trapping 1. Event mechanismProblem Description:1) How does the event mechanism work? How is it different from the event loop mechanism?Answer:Event mechanism is different from event loop. It is user interaction level and depends on event ...

Posted by 8ball on Thu, 20 Jan 2022 20:58:30 +0100