Understand JSON: 3-minute Course

Two months ago, youNeverI have heard of JSON You heard this word a month ago but didn't pay attention to it. A week ago, you found that this word was mentioned many times and started to think,That's right... There are some junk things to learn.

Text scrolling in the lower left corner

Source code:Css:Copy codeThe Code is as follows:* {Padding: 0; margin: 0; font-size: 12px ;}. Do_ta {border: 1px solid # E4E4E4; margin: 10px auto; width: 170px ;}. Do_ta. ta_ta {background: url ("http://s.zbjimg.com/p/zbj/css/../img/tafb.gif")

The shortest javascript: load the script code in the address bar

However, when the script is relatively long, you need to copy a large segment to the address bar, it looks very bad, and it is not easy to modify the script. Therefore, you should first write the script in a separate file, and then dynamically load

Insert content in the jQuery-based input box at the cursor position and select

Copy codeThe Code is as follows://// Usage// $ (Text field selector). insertContent ("inserted content ");// $ (Text field selector ). insertContent ("inserted content", numeric value); // select the boundary between the two sides of the inserted

Use dtree to implement tree menu dtree

Preparations:Download the dtree.zipfile from http://www.jb51.net/jiaoben/31974.html.Dtree.zip package introduction:Dtree is a simple tree menu component written in JavaScript. It is currently free and open-source.Currently, there are many tree menu

The value of the drop-down box is used to determine whether the input box can be empty.

There are two files, a.html and B .html, that is, the following code. B .html is only used to verify that a jump page is passed, and no code is written.Because a.html is a relative component, the program can run normally, and B .html are placed in

Differences between IE and childNodes in FireFox

In Javascript, I believe everyone has tried to use getElementsByTagName and childNodes to traverse nodes. However, getElementsByTagName is obviously inferior to childNodes for complex DOM structure traversal, because childNodes can better process

JQuery-based component for Imitating Sina Weibo time

First of all, some people say that this is a repetitive task, but I don't think it is. If you are a project, you cannot always take other people's things. It is not a good idea to take things, of course, if you want to make it easy, you have nothing

JQuery AjaxQueue improvement steps

I want to make improvements when I have nothing to do during the holidays. There are not many changes, mainly including the following three points:The complete callback can be a Function Array after jquery1.5 and called in the array order.If the

Based on jQuery, let textarea support Ctrl + Z step-by-step Revocation

There are not many codes.Mainly:Copy codeThe Code is as follows:Var log = [];$ (Function (){Var txt = window. setInterval (function (){If (log [log. length-1]! = $ ("# T"). val ()){Log [log. length] = $ ("# t"). val ();}},1500 );Var isCtrl = false;$

Code for automatically opening links on pages using JS

Make a simple record here to prevent you from forgetting it.The following are the main functions for automatically clicking and opening the link. The function is not described in detail, preventing too many people from abusing the link. a thoughtful

Null and undefined

Copy codeThe Code is as follows: javascript null and undefined

Jquery Ajax application learning and application

Let's start with some basic knowledge:Syntax: $. ajax ({option })Option indicates the parameter. In the form of key/value.Common parameters: type: post/get.Url: the address where the request is sent.Data: {object: object} the data sent to the server,

Jquery extension method summary

I. Method list:1. jQuery. extend (Object); // jQuery Extension Method2. jQuery. fn. extent (Object); // jQuery selected Object Extension MethodIi. Call example:1. An example of jQuery extension method is as follows:Copy codeThe Code is as

JS string Function Extension code

Copy codeThe Code is as follows:/*************************************** ************** CreateBy: joe zhou* CreateDate: 2011-9-4* Description: String Auxiliary Function**************************************** ************/// String. prototype = {//

Jquery simulates press enter to implement code

Write down jquery's carriage return event. The Code is as follows:Global:Copy codeThe Code is as follows:$ (Function (){Document. onkeydown = function (e ){Var ev = document. all? Window. event: e;If (ev. keyCode = 13 ){$ ('# FormId). submit (); //

70 + beautiful and very friendly navigation menu design recommended for foreign websites

The navigation menu should be simple enough to allow users to quickly understand it, but it should also contain some necessary elements to guide users to browse the entire website-incorporate some creative and beautiful designs. Recommended70

Implementation Code of jQuery1.6 type judgment

FirstGlobal variable class2type = {};Rdigit = // \ d/, // regular expression to determine whether it is a numberToString = Object. prototype. toString;Use jQuery. each to define the attributes and values of class2type:Copy codeThe Code is as follows:

Implementation Code of loading prompt Based on jquery loading

Loading prompt · Transparent mask centered Copy codeThe Code is as follows:Body {Margin: 0;Font-size: 12px;Line-height: 100%;Font-family: Arial, sans-serif;}. Background {Display: block;Width: 100%;Height: 100%;Opacity: 0.4;Filter: alpha (opacity = 4

Add a custom Verification Method to the JQuery extension Validate 5

Example:Copy codeThe Code is as follows: Running result:NOTE: If there are multiple parameters, you can use arrays, such as regex: [, 5]. You can use subscript to access params [0] in the method.Some extension verification methods provided by

Total Pages: 5378 1 .... 4159 4160 4161 4162 4163 .... 5378 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.