This article describes the method of adding events to the a tag by js. I will share it with you for your reference, as follows: Example: Implementation effect: Loop adds events to the a tag with ml-praise style class, and after clicking the a tag, the cor
The message/event mechanism is a mechanism that almost all development languages have. It is not the originality of deviceone. It is called message (Event) in some languages, and Message in some places. In fact, the principle is similar, but some implem
What is deconstruction? Deconstruction is completely opposite to constructing data. For example, instead of constructing a new object or array, it splits the existing object or array one by one to extract the data you need. ES6 uses a new pattern to match
This article shares the code of the JavaScript carousel diagram component for your reference. The specific content is as follows //Carousel diagram component function Rolling(o) { this.index = ++o.index || 1; //The current scrolling position, when the ind
This article describes the solution to the JS prompt: Uncaught SyntaxError:Unexpected token ) error. Share it for your reference, the following code is as follows: Uncaught SyntaxError: Unexpected token )
There is a concept of class in an object-oriented language (such as Java), and through classes, you can create as many objects with the same properties and methods. However, JavaScript does not have the concept of a class, so its objects are also differen
2. To solve the problem caused by including reference type values in the prototype, we use a technique called borrow constructor stealing (also called forged objects or classical inheritance). The basic idea of this technique: call the supertype construct
Expressions are used to bind application data to HTML. Expressions are written in double brackets like {{expression}}. The behavior in expressions is the same as the ng-bind directive. AngularJS application expressions are pure javascript expressions and
1. Basic composition: 1. Highcharts contains the title (Title): the main title is necessary but subTTitle is not necessary 2. Axis: There are x coordinates (xAxis) and y coordinates (yAxis) 3. Data columns (Series): Each curve, each column bar group, and
Preface interview encountered a problem: JS array sum function. The first thing I think of is array loops. However, I think the interviewer asked this question not to take the well-known method. At that time, I was so clever that I thought of the recursiv
AngularJS ng-open directive AngularJS instance is displayed or hidden by clicking on checkbox<details> List:<!DOCTYPE html><html><head><meta charset="utf-8">
one. Installing the ubuntu system in win7 environment http://jingyan.baidu.com/article/60ccbceb18624464cab197ea.html Note: In the fourth step of installation, select the item "Installing the ubuntu system and coexist with win7 system".
This article shares the JS printing combination function for everyone, which is comprehensive for your reference. The specific content is as follows 1. Local printing - that is, print wherever you want to print, solution: hide the places you don't wan
Bubble sorting: It is to arrange the elements in an array in order from large to small or from small to large. var array=[9,8,7,6,5,4,3,2,1]; first round comparison: 8,7,6,5,4,3,2,1,9 exchanged 8 times i=0 j=array.length-1-i Second