Simple implementation and notes of jQuery selector

#Introduce jQuery tool library ##Download address - cdn:http://www.jq22.com/cdn/#a2 -Download address: http://www.jq22.com/jquery-info122 #Document query -Chinese: https://www.jquery223.com/ -English: https://jquery.com   ##Introducing jQuery ```js < script SRC = ". / jQuery. JS" > ``` ##DOMContentLoaded and onload ```js //Wait ...

Posted on Fri, 08 May 2020 04:55:42 -0700 by robert_a89

Use JQuery to complete form verification (extension)

event: Get focus event: onfocus Lost focus event: onblur Key up event: onkeyup Mouse in: onmousenter Mouse out: onmouseout JS import external file: script tag requirement analysis When users submit forms, we'd better be able to do a verification before the user data is submitted to the server to prevent the server from over pressure and give us ...

Posted on Thu, 07 May 2020 08:03:23 -0700 by jdimino

Using JavaScript to change color between rows

Table alternate color requirement analysis There is too much information about our product classification. If each line displays the same color, it will make people dazzled. In order to improve the user experience and reduce the user's mistake, we need to change color between lines in the table technical analysis table object aggregate Cells [] ...

Posted on Wed, 06 May 2020 08:34:48 -0700 by TropicalBeach

Using JQuery to complete the color change of the interlaced table

Js related technology Get all rows ​ table.rows[] Change the color of the row ​ row.bgColor ="red" ​ row.style.backgroundColor = "black" ​ row.style.background = "red" ​ "background-color:red" ​ "background:red" requirement analysis In our actual development process, if all the rows of our table are the same, it's easy to see eye candy, so we n ...

Posted on Wed, 06 May 2020 07:19:41 -0700 by jmoreno

jQuery learning (2) using ajax()

Share in the previous article Using AJAX in JavaScript (for beginners) We learned how to use AJAX in JavaScript. Because jQuery has excellent performance and concise writing method, and it also supports the use of AJAX, this sharing will show how to use ajax() function in jQuery.    for a tutorial on the ajax() function of jQuery, p ...

Posted on Tue, 05 May 2020 11:55:40 -0700 by C_Calav

json basic + instance

Brothers, I only talk about the core Just to modify and delete //Modification myobj.ke[0]= "HTML Course" var i,x=""; for(i in myobj.ke) { x = x + i + " | " + myobj.ke[i] + "<br>" } document.getElementById("demo02").innerHTML = x; The core is coverage Other students who don't understand please look at 123 ha, you real ...

Posted on Tue, 05 May 2020 08:17:48 -0700 by oskom

Simple use of javascript class encapsulation based on ECMAScript 6, ECMAScript 2015

Simple use of javascript class encapsulation based on ECMAScript 6, ECMAScript 2015 Create a JS file test.js In the following example, we first define a class named Polygon, and then inherit it to create another class named Square. Note that the super() used in the constructor can only be used in the constructor and must be invoked before using ...

Posted on Tue, 05 May 2020 02:29:55 -0700 by bdbush

Several methods of local refresh page after form form form submission by Jquery

Recently, a small project just needs to use the search function to input data in the search box, press enter or click Submit, and then process the data to the background database and return it to the front end, and locally update the data in the front end. But there is a small problem, that is, after entering any input box in the form form and ...

Posted on Mon, 04 May 2020 23:30:06 -0700 by geo3d

Animal.call(this, name); what exactly is it? (understand inheritance in JS)

Preface There is a problem in learning the knowledge points related to inheritance. What do you mean by Animal.call(this, name) in the following code? Why does it mean that it inherits the attribute of the parent Animal? function Animal(name) { this.name = name; } Animal.prototype.say = function() { return this.name; } function Cat(name ...

Posted on Mon, 04 May 2020 13:01:51 -0700 by Lirpa

Copy to clipboard implemented by javascript

"Copy to clipboard" is a function we use dozens of times a day, but the client API is always lacking. Some older APIs and browser implementations need a terrible "are you sure?" -Before a style conversation, content will be copied to the clipboard - not suitable for availability or trust. About seven ...

Posted on Mon, 04 May 2020 06:48:42 -0700 by bobicles2