Event name DescriptionOnLoad and OnUnload (obsolete) the OnLoad and OnUnload events are triggered when the user enters or leaves the page, and the onload is not loaded until all the elements of the page have been loaded.Onfocus,onblur,onchange is
1.toLowerCase (); Converts the letters in a string to uppercase.For example:var str = "AbcD";Str=str.tolowercase ();The result is: ABCD2.toUpperCase (); Converts the letters in a string to lowercase.For example:var str = "AbcD";Str=str.touppercase ()
NodeList Objectis a collection of DOM operations taken out (actually based on the results of a dynamic query of the DOM structure) to hold an ordered set of nodes that can be accessed through a location that is not an instance of an array.The most
JS has a total of 6 data types defined for us, namely:undefined,null,Boolean(Boolean),number (numeric),string (string),object. (Additional data types are defined in ES6). Where the first 5 is a simple data type, object is a complex data typeBefore
Some of the created, structured, and behavioral design patterns that we have learned in the previous 3 chapters can be combined to form a schema-based design pattern.8.1 MVC PatternThe MVC (Model-view-controller, model-View-controller) pattern
Define a regular table-typeBe able to use literalvar regex = /xyz/;var regex = /xyz/i;You can also use constructorsvar regex = new RegExp(‘xyz‘);var regex = new RegExp(‘xyz‘, "i"); // 第二个參数表示修饰符The regular form of a direct-volume characterDirect
The point of thisThis is the keyword defined in JS, it is automatically defined in each function domain, but its point is confusing. In practice, the direction of this can be broadly divided into the following four cases.1. As a normal function
1, beginner's hands-on environment----recommended Chrome's console (F12 call)2, JS in two very important data types are objects and arrays.3. JavaScript programs are written in the Unicode character set.4. JavaScript is a case-sensitive programming
Let's start by explaining what a circular reference object is:var a={"name": "zzz"}; var b={"name": "VVV"};a.child=b;b.parent=a;Both A and B here are a circular reference object.The circular Reference object is not a problem at the time of
The Kissy is a cross-terminal, modular, high-performance, easy-to-use JavaScript framework. In addition to a complete set of tools such as DOM, Event, Ajax, Anim, etc., it also provides a classic object-oriented, dynamic loading, performance
1. VariablesThe variables in JavaScript are loosely typed and can be used to hold any type of data.A variable defined with the var operator becomes a local variable in the scope that defines the variable.You can create a global variable after
function Countbodychildren () { var body_element = document.getElementsByTagName ("body") [0]; = Countbodychildren; // window.onload = Countbodychildren ();Code function: Displays the child elements of the BODY element in a popup box.No
Suppose that there is a function f (x) =x2; the function is in an array [1,2,3,4,5,6,7,8,9], which is usually implemented by means of traversal.function f (x) { return x * x; } var arr = [1,2,3,4,5,6,7,8,9]; var result = []; for (var i=0; i)
[Note] at this stage, the frontend part of youdao cloud note is organized.Js can now run on 1. Browser Side 2. Computer Operating System
Through the well-known node, the node is a js runtime environment compiled by c/cpp, probably because js is
Css position, cssposition
I don't have much gossip to say, so I can write it directly!
Positioning
We can use the position attribute of css to set the element positioning type. The position settings are as follows:
A. relative generates relative
Bootstrap thumbnail, bootstrap thumbnail sizePrevious
Thumbnails are commonly used on the product list page. Several images are displayed on one line, and some have titles, descriptions, and other information at the bottom (left or right) of the
Set the style of the Checkbox check box control in pure CSS, and csscheckbox
The following are five simple styles for setting the Checkbox check box control in pure CSS. If you are interested, you can change them to the style you want.
First, you
H5 data-* easy to ignore, h5data-ignore
H5 has added the data-* attribute, which is very convenient
However, we often ignore the lower-case issue. H5 requires that all the attribute names be lower-case, so we are used to getting rid of the camper
Reduce page loading time
1. Duplicate HTTP requests should be minimized
(1) Reduce the number of calls to other pages and files.
(2) Sprite
2. Compress Javascript and CSS code
3. Define css styles in the file header
This setting is advantageous for
CSS cursor attribute, csscursor attributeCursor1. definition and usage
The cursor attribute specifies the type (SHAPE) of the cursor to be displayed ).
This attribute defines the shape of the cursor used when the mouse pointer is placed within the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service