The following code is my test code and the comments are important:
Copy Code code as follows:
/*global window,jquery,validate_email,masterui,$,rest*/
/** Enable ECMAScript The "strict" operation for this function. MORE:
* Http://ejohn.
JSON Object
Copy Code code as follows:
var json = {Aa:true,bb:true};
var json1 = {aa: ' B ', bb:{cc:true,dd:true}};
1:js manipulate JSON objects
Copy Code code as follows:
For (var item in JSON) {
alert
Recently bored, looking at many sites have automatic advertising rotation, I tried to write a picture rotation, code and functions are very simple, only support IE, FF and add some dongdong.
XML file: Test.xml
Copy Code code as follows:
There are four kinds of common animations, which are introduced:Linear: Linear animation, that is, uniformEasein: Speed from small to large, that is, fade inEaseout: Speed from big to small, that is, fade outEaseinout: Start from small to large, at
In this Liezi, we practiced table operations, including: tbodies, rows, cells, and how to sort the array: sort
First code:
Copy Code code as follows:
table sorting
2
bbb
5
eee
3
ccc
There are several ways to register events for some elements in HTML
First type:
Copy Code code as follows:
Test
The second type:
Copy Code code as follows:
Test
Third (the model of the
Occasionally found in JS has a delay-loaded label defer, still wondering why such a good thing is not popular.
Several browsers were tested. It can be under ie7,8,9 and 360 security browsing. That's why we don't choose defer.
Copy Code code as
In the processing of web images, especially the application of some picture list, it is difficult to ensure that the picture uniform size, directly set the picture size will lead to picture stretching, resulting in blurred picture, the code
The Html Dom refers to some DOM operations that are supported by each browser before the advent of the Web-Consortium specification.
1,select object.
Property
A,selectedindex: Subscript for the option selected by the user, subscript starting from
This time to learn about partial application. Let's take a look at the introduction to the function and have a simple introduction to Wikipedia:
In mathematics, a function is a description of each input value corresponding to the unique output value
You can refer to the previous version of Http://www.jb51.net/article/33555.htm This is a bit of a bad place, that is, if you want to change the style, you may have to use a lookup replacement.
Therefore, Insus.net write another method to implement,
Today I did a CSS practice, the effect is a bit like the Maxthon home page. Use onmouseover and onmouseout events to achieve different effects. Such as:
You can use JavaScript below.
Copy Code code as follows:
FieldSet the
The first is a more conventional approach.Ideas:1. Build a new array to store the resultsIn the 2.for loop, every time you take an element out of the original array, you use IndexOf to find out whether the element is in the new array.3. If not, save
A lot of people know this pointer, the main purpose of this article is to train our new company.The default this pointer points toRule 1The this pointer defaults to the object that was specified for the method call, such as: Obj.fun (), and the this
Window.close (), you can see the way to close the browser window. W3cschool explains the method as follows: Method Close () Closes the top-level browser window specified by the window. A window can shut itself down by calling Self.close () or by
1. Building a JavaScript Library
Copy Code code as follows:
(function () {
Registering a namespace IC with Windows
window[' Jshide ']={};
Hides the sidebar and replaces the picture with the right arrow picture
function
Copy Code code as follows:
function Setiframeheight (down) {
var Sys = {};
var ua = Navigator.userAgent.toLowerCase ();
var s;
(s = Ua.match (/msie) ([\d.] +)/)) ? sys.ie = S[1]:
(s = Ua.match (/firefox\/) ([\d.] +)/)) ? Sys.firefox = S[1]
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