JavaScript Classic Example
First, validation Class 1, digital verification within 1.1 integers
1.2 Integer greater than 0 (authentication for incoming ID) 1.3 Validation of a negative integer 1.4 integer cannot be greater than IMAX 1.5 integer cannot be less than Imin 2, time class
2.1 short time, shape such as (13:04:06) 2.2 Short date, shape (2003-12-05)
2.3 Long time, shape as (2003-12-05 13:04:06) 2.4 Only years and months. Shape (2003-05, or 2003-5) 2.5 only hours and minutes, shaped like (12:03) 3, Form class
3.1 All the values of the form cannot be empty the value of the 3.2 multiline text box cannot be empty.
The value of more than 3.3 lines of text box cannot exceed Smaxstrleng 3.4 The value of a multi-line text box cannot be less than Smixstrleng 3.5 to determine whether the radio box is selected. 3.6 Determines whether the check box is selected.
3.7 check box Select all, Multi-Select, select All, reverse 3.8 file upload process to determine the file type 4, character class
4.1 Judging characters are all composed of a-Z or a-Z character letter 4.2 The character is composed of letters and numbers.
4.3 The judging character consists of a letter and a number, an underscore, and a dot. And the beginning is only the underscore and the letter 4.4 string substitution function. Replace (); 5. Browser class
5.1 Judging the browser type 5.2 determine the version of IE 5.3 to determine the resolution of the client 6, the combination of Class 6.1 email judgment. 6.2 Verification of the mobile number 6.3 ID
Second, the function class
1. Time and related control class 1.1 calendar 1.2 time Control 13,000 calendar
1.4 Display the dynamic display clock effect (text, such as time in OA) 1.5 display the dynamic display clock effect (image, like a watch) 2, Form Class 2.1 automatically generate a form
2.2 Dynamic Add, modify, delete drop-down box element 2.3 You can enter a drop-down box for the content
Only IMAX text can be entered in more than 2.4 lines of text box. If more input, automatically reduce to IMAX text (more for text messaging) 3, print Class 3.1 print control 4, event Class 4.1 Shield right-click 4.2 Mask all function keys 4.3--and <--F5 f11,f9,f1 4.4 Screen key combinations CTRL + N 5, net Page Design Class
5.1 Continuous scrolling text, picture (note is continuous, two paragraphs of text and no white space appears in the picture) 5.2 HTML Edit Control class 5.3 Color marquee control 5.4 drop-down menu
5.5 Two-level or multiple-level drop-down menu
5.6 A button that imitates the IE menu. (Effects such as rongshuxa.com navigation section) 5.7 status bar, title column dynamic effect (many examples, you can study) 5.8 Double-click, the Web page automatically scroll 6, tree structure. 6.1 Asp+sql Version 6.2 Asp+xml+sql Edition
6.3 Java+sql or Java+sql+xml 7, no border effect of the production 8, the continuous drop frame technology 9, text sorting
---------------------------------------------------------------------------------------I. Validation Class 1, number verification within 1.1 integers
/^ (-|\+) \d+$/.test (str)
1.2 Integer greater than 0 (for authentication of transmitted IDs)/^\d+$/.test (str) 1.3 Negative integer validation/^-\d+$/.test (str) 2, TIME class
2.1 Short time, shaped as (13:04:06) function istime (str)
JavaScript Classic Example