In web page production, there are many terms, such as: CSS, HTML, DHTML, XHTML and so on. In the following article we will use some basic knowledge about HTML. Before you study this introductory tutorial, please make sure that you already have a certain b
According to some optimization rules of browser web pages, page optimization static resource compression uses construction tools (webpack, gulp) to appropriately compress web page static resources such as images, scripts and styles. CSS sprite images and
Use the substring() or slice() function: split() Function: Use a specified delimiter to split a string and store it in an array Example: Copy the code The code is as follows: str="jpg|bmp|gif|ico|png"; arr=theString.split(”|
If you need to use pictures to achieve the use of Checkbox, you can use it to implement it. The implementation principle is to replace the label table instead of the checkbox display, set the Display of Checkbox to None, use the picture IMG to be displaye
This is an important keyword in the object -oriented language. Understanding and mastering the use of this keyword is essential for the robustness and beauty of our code. JavaScript's this is different from the objective -oriented language such as Jav
I wrote a sliding scale for use on the mobile side. I have seen it in the native App before and it is very detailed. Now it is implemented on the web page; the implementation effect is as follows: (See the source code at the end of the article) Packaged i
<SPAN style="FONT-SIZE: 18px">1.Math.random(); The result is a random number between 0-1 (including 0, excluding 1)</span> Math.random(); The result is a random number between 0-1 (including 0, excluding 1) [h
1. The code copy code of the JS part is as follows: / *** Submit the form* / function submitform (action, actName, Objname, Formname, blogtype) {$ ("#"+formname).
Whenever a major festival, the homepage of major mainstream websites will wear festivals. Designers generally use large background pictures to obtain a better visual impact effect. Of course, considering that some users are not used to this big background
Everything in JavaScript is an object: string, array, value, function, etc. There is no concept in JS, but we can use JS's grammatical characteristics to create objects with the idea of class. The original method copy code code as follows:<script ty