DafanProgramResumable debugging is indispensable for debugging. However, resumable debugging for Javascript is really scratching your head. Here is a rough introduction to the breakpoint debugging method under firebug.
A. After opening firebug,
1 variable name
The variable name must start with a letter and can only contain letters, numbers, and/or underscores, and cannot conflict with reserved words. Variable names are case sensitive.
2. Data Type
2.1 numeric type
The bottom layer of
1 objects and events
An event occurs in a browser, such as clicking a button, moving the mouse pointer, or on a page from a service provider.
event demonstration
2. Define event processing
The specific method for defining event processing is:
1. Understand Javascript
1.1common JavaScript Functions
* Display information to visitors as part of a webpage in the browser's status bar or warning bar.
* Verify the Form Content
* When a visitor moves the mouse over an image, the image is
1. Define and use CSS styles
1.1 define a style
You can use the is the end identifier, as follows:
Because the style sheet itself does not produce any output on the page, you should prevent the BA female words Li Bai An arrow in
Source: http://blog.csdn.net/ttch/archive/2004/08/12/72267.aspx
The cyclic subject code is as follows:
/*************************************** ***** Author: Zhao Xinfeng*FormatWhether null is nullNum numberAB letterCHS Chinese CharactersBitPhone
Any violation to this guide is allowed if it enhances readability.
All code should become readable for others.
The long-term value of software is directly derived from its coding quality. In its entire lifecycleProgramIt may be read or modified by
1. The text that is cyclically rolled up.
II. Implementation ideas 1. Build three layers of dome, dome1, and dome22. Vertically scroll text on dome13. Text scrolling through layer scrolling
Iii. Source Code circular and upward scrolling text best
An example of user name verification:
HTML:
JS:
Function checkuser ()
{
VaR username = $ ("# username"). Val ();
If (! Username. Match (/^ [\ u4e00-\ u9FA5a-zA-Z0-9 _] {} $ /)){VaR MSG = "Chinese characters, English letters, numbers,
/*------------------------------------------------------
* Author: xieyu @ 2007-08-14
* Language: Javascript
* Description: Common Operations of select element Javascript
* 1. determine whether an item with the specified value exists
* 2. Add an
.....
Text Box, password box, hidden, single choice, multiple choice box.Checkbox checkedThe methods for getting the value areRequest. getparmeter ("name ");
Collect drop-down box attributes. Select, Option
The text has no border. When 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