JS expressions and operators in "JS learning notes"

1, What are expressions and operators Expression: an expression consisting of operands and operators. Classification of expressions: arithmetic, relation, logic, assignment and synthesis. 2, Arithmetic expression 2.1 arithmetic operators significanceoperatorplus+reduce-ride*except/Surplus% It is recommended to use () to enforce prio ...

Posted by yellowzm on Wed, 05 Jan 2022 11:47:05 +0100

React learning notes -- redux

1, redux understanding 1. Learning documents English documents: https://redux.js.org/Chinese documents: http://www.redux.org.cn/Github: https://github.com/reactjs/redux 2. What is redux redux is a JS library dedicated to state management (not a react plug-in library).It can be used in react, angular, vue and other projects, but it is ba ...

Posted by mikesheridan5 on Wed, 05 Jan 2022 11:29:44 +0100

elementUI complex form validation

Today, I will summarize the verification problems of complex forms. After learning, they can be directly used in actual development. I believe they will be helpful to you in actual projects. We all know that the elementUI component library has been improved. Today, let's take a look at its common form components. Generally, form modules that me ...

Posted by phuggett on Wed, 05 Jan 2022 11:29:15 +0100

"JS learning notes" JS array

1, What is an array Array, as its name implies: the type used to store a set of related values. Array can easily sum a group of values, calculate the average value, traverse item by item and so on. var scoreArr = [87, 89, 93, 71, 100, 68, 94, 88]; Array names are used to end with Arr. 2, Definition of array 2.1 square bracket de ...

Posted by codrgii on Wed, 05 Jan 2022 09:40:54 +0100

React - Ajax - axios - configure agent to solve cross domain problems - message subscription / publishing mechanism - PubSubJS - Fetch - github user search case

1, Understand 1. Pre description React itself only focuses on the interface and does not contain the code to send ajax requestsThe front-end application needs to interact with the background through ajax requests (json data)Third party ajax libraries (or self encapsulation) need to be integrated in React applications 2. Common ajax req ...

Posted by drawmack on Wed, 05 Jan 2022 08:56:46 +0100

Cross domain solutions

Cross domain The principle of cross domain is: the same domain is only when the protocol, domain name and port are the same. Otherwise, it is cross domain. Cross domain means that the browser does not allow the source of the current page to request data from another source Homology Another concept is homology. Homology refers to the sam ...

Posted by matbennett on Wed, 05 Jan 2022 08:39:36 +0100

[jQuery in front end tutorial series] 02_ Introduction to jQuery and understanding of design ideas

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! Getting started with jQuery jQuery download and import jQuery Download Official website address: jQuery Official A ...

Posted by chetanmadaan on Wed, 05 Jan 2022 07:35:56 +0100

The call() apply() bind() method in JS changes this

We all know the direction of this: Always adhere to a principle: this always points to the object that was invoked at last, because the object of calling function is different, which leads to the different direction of this. However, the direction of this can be changed by using call apply bind: call method Syntax: fun call(thisArg, arg1, ...

Posted by maheshbaba on Wed, 05 Jan 2022 06:40:19 +0100

On New Year's day in 2022, I finally understood the prototype and prototype chain

prefaceIf your understanding of prototype and prototype chain is still at a very shallow and ambiguous stage, you might as well take a look at my article. It should be helpful to you. If it is so helpful to you, you are welcome to praise, comment and forward. If you have questions and doubts, you can also leave a message in the comment area. I ...

Posted by fredfish666 on Wed, 05 Jan 2022 05:45:15 +0100

Ten sorting javascript implementation + animation demonstration

Algorithm classification Comparison sort: the relative order between elements is determined by comparison. Because its time complexity cannot exceed O(nlogn), it is also called nonlinear time comparison sort.Non comparison sort: it does not determine the relative order between elements through comparison. It can break through the time lowe ...

Posted by bandit on Wed, 05 Jan 2022 01:38:06 +0100