To Format a data table, you need to set the formatter attribute, which is a function and contains two parameters:Value: the value of the current column of the corresponding field.Record: record Data of the current rowCopy codeThe Code is as follows:$
There are few methods provided by the Date class in ExtJs. However, on the other hand, due to historical reasons, there are many letters describing the format variables of Date in any language. This section describes the Date format representation.
What is a DOM object? HTML organizes documents in a tree structure as follows:Copy codeThe Code is as follows: 1-4 example what is your favorite fruit? Apple orange pineapple The DOM tree of the preceding HTML file is as follows:
What is a
Yesterday shared the http://jscompress.sinaapp.com/this small tool, found that you are still very fond.
So today, I converted it into json. I used json to transmit data and opened APIs.
All functional implementations of this tool are handled by
Object-oriented terminology
Class
Class is the code segment used to create an object as a design blueprint. It describes the features of an object, the attributes of the object, the tasks of using the object, and the responses of the
Copy codeThe Code is as follows:/// ---------------- Author Teng -------------// Verify whether it is nullFunction check_blank (obj, obj_name ){If (obj. value! = ''){Return true;} Else {Alert (obj_name + "cannot be blank! ");Obj. value = "";Return
Differences between textContent and innerTextIE has an innerText attribute, and FF has a textContent attribute. Many of the scripts previously written to IE cannot find the innerText attribute under FF. Therefore, we recommend that you use
First, we must correctly understand what a child element is. for example, we have written a span tag on a webpage. in addition, the text content is written into the span: "Welcome to the home of scripts". The text content is a child element of the
Jqplot is based on a basic jqplot. js files with multiple plug-ins supported by js files-that is, jqplot. js files can only be used to draw line charts. For pie charts and bar charts, pieRenderer must be introduced. js files.Here, we will refer to
Some people often ask for some tips, so simply write such an article for jQuery fans.[Basics]A) styleMany people will think that style is a very complicated thing. They need a calm mind and an extraordinary aesthetic to design a pleasing UI. Aside
$ W MethodSplits a string into an Array, treating all whitespace as delimiters. Equivalent to Ruby's % w {foo bar} or Perl's qw (foo bar ).Copy codeThe Code is as follows:Function $ w (string ){If (! Object. isString (string) return [];String =
The purpose of this article is to teach humans to fish as well as to teach humans to fish. I will only talk about the key part. It is impossible to talk about every function in JQuery, because many function shells have never been used in practical
My methodsCopy codeThe Code is as follows: Lou '; "> reply Document. getElementById ('body'). focus () // sets the mouse focusDocument. getElementById ('title'). value // you can set the title value or document. getElementById ('title').
Translated by Aaron Gustafson and Li songfeng Li yawen. It is definitely a book worth reading. For more information, see. Below are the common javascript traps and object concepts I extracted from them. Hope to help you.Common traps in Javascript
JavaScript 1.8 is intended to be used as part of Gecko 1.9 (to be merged in Firefox 3. Compared with JavaScript 1.7, this is only a small update, but it does contain traces of evolution to ECMAScript 4/JavaScript 2. JavaScript 1.8 will also include
1. always inherit from the ID SelectorThe fastest selector in jQuery is the ID selector because it comes directly from the getElementById () method of JavaScript.For example, there is an HTML code:Copy codeThe Code is as follows: traffic signals
Please refresh the code once. jquery performs zebra crossing exercises foothome foothome Home of foot Home of foot foothome / table> [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to
Differences between js and css in IE and FireFox (FF)Css: 1.In the ul tag, FF has a padding value, but there is no margin value. In IE, the opposite is true.Solution: Set ul's padding and margin to 0 (or not 0), for example, padding: 0; margin: 0;
Do you have such a situation?When you use jquery to obtain the ddl value of the drop-down list, the returned string is 'null' instead of a null value. As a result, the obtained parameter is incorrect;Even if it is determined in the background that
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