ES6 new syntax (deconstruction assignment, template string)

1, Deconstruction assignment Deconstruction assignment syntax is a JavaScript expression. By deconstruction assignment, you can take the attribute / value from the object / array and assign it to other variables. Object and array correspondence expressions, or object literals and array literals, provide a simple way to define a specific da ...

Posted by pp4sale on Thu, 06 Jan 2022 09:40:40 +0100

webpack: basic usage

1, babel What is babel? The browser does not support ES6 syntax well. Some ES6 syntax cannot be recognized by the browser; The JSX syntax of React cannot be recognized by the browser. It needs to be converted to the syntax recognized by the browser before it can be interpreted and executed by the browser. We need babel to do this and use babel ...

Posted by dookie on Thu, 06 Jan 2022 07:15:30 +0100

[jQuery in front-end tutorial series] 04_jQuery queue control, plug-in mechanism, multi database coexistence

jQuery video through train from getting started to becoming proficient:         JQuery video tutorial, from introduction to actual combat, interactive actual combat between native ajax and jQuery ajax, easy to understand! 1, jQuery object access each(callback) Execute a function with each matching element as the context. This means that ev ...

Posted by gr8dane on Thu, 06 Jan 2022 06:37:51 +0100

[JavaSript knowledge training - Basics] [12 Javascript object programming] [JavaScript language basics] [11 JavaScript objects] []

9. JavaScript overview 1, JavaSript knowledge training - Basics 1. JavaScript is a scripting language that runs on (). B. Client 2. JavaScript code is usually embedded into html documents with () tags. D,script 3. The only tool for writing JavaScript programs is a plain text editor. B. Error 4. After defining a variable with var, if no ...

Posted by katie77 on Thu, 06 Jan 2022 05:23:43 +0100

vue3. Data response of X source code analysis

preface If you miss autumn maple and winter snow, the cherry blossoms in spring will be in full bloom. Recently, I have been preparing for my own exam. After the exam, I can finally continue to study the source code and write articles. Hahaha. Those who have studied Vue know that data response is extremely important in Vue framework. Data resp ...

Posted by jcstanley on Thu, 06 Jan 2022 03:27:28 +0100

Hooks usage rules

Hooks is just a JavaScript method, but it should be used in the correct way. We provide a linter plug-in to automatically check. Hooks is called only at the top level Do not call Hooks in loops, conditional statements, or nested methods. To be called at the top level of your React method. Following this method, you can ensure that hooks are ...

Posted by pushpendra.php on Thu, 06 Jan 2022 01:46:50 +0100

vue3 knowledge point 5.3 vuecli3 project static resources

#vue3 knowledge point 5.3 vuecli3 project static resources 1, How to introduce static resources: 1. Static resource placement directory vue-cli3.0 has two directories for static resources, public and src/assets. 1.public public can store unchangeable files (equivalent to static in vue-cli2.x), external JS and CSS resources, and pictures. ...

Posted by PHPNewbie55 on Wed, 05 Jan 2022 23:37:27 +0100

Closures, constructors, and instantiated objects, prototype objects, and prototypes of JS underlying JS

1. Closure of JS 1. Definition A closure is a function that has access to variables in the scope of another function. Simply put, you can think of a closure as a special function that reads functions of internal variables of other functions. 2. Role Normal functions, after execution, the variables declared in the function will be garbage co ...

Posted by Dj_Lord on Wed, 05 Jan 2022 21:03:46 +0100

You may not have heard of DOM operations in js and this: HTMLCollection and NodeList

⛱️ preface I still remember the last interview when I was asked about the relationship between htmlCollection and array. At that time, I was thinking about the relationship between sets and arrays in html. That is to say, the relationship between sets and arrays? So... The interviewer immediately corrected me that htmlCollection is a c ...

Posted by Altec on Wed, 05 Jan 2022 20:38:13 +0100

[code farming from scratch vue+springboot+axios]

The beginning of everything How to become a yard farmer is a problem. Generally speaking, to become a programmer, the first thing to do is to choose. People's energy is limited. Not many people can make great achievements in multiple directions at the same time. Of course, except the big guy. For us mortals, we always say that if we want t ...

Posted by javawizkid on Wed, 05 Jan 2022 19:18:50 +0100