Methods commonly used in JavaScript (better, collected)

xiaoxiao2021-03-06  100

First, verification class

1, digital verification

? 1.1 integer

? 1.2 Entariance of greater than 0 (for verification of IDs)

? 1.3 Verification of negative integers

? 1.4 integers cannot be greater than IMAX

? 1.5 integers cannot be less than IMIN

2, time class

? 2.1 short time, shaped (13:04:06)

? 2.2 short dates, shaped (2003-12-05)

? 2.3 long, shaped (2003-12-05 13:04:06)

? 2.4 Only year and month. Shape (2003-05, or 2003-5)

? 2.5 hours and minutes, shaped (12:03)

3, form class

• 3.1 All forms of the form cannot be empty

? 3.2 Multi-line text boxes cannot be empty.

? 3.3 Multi-line text boxes cannot exceed SmaxStrleng

? 3.4 Multi-line text boxes cannot be less than SMIXStrleng

? 3.5 Judging whether the radio box is selected.

? 3.6 Judging whether the check box is selected.

? 3.7 all select, multi-selection, all-in-one, reverse selection

? 3.8 During the file upload process judgment file type

4, character class

? 4.1 Decision characters are composed of A-Z or A-Z letter

4.2 Judgment Character consists of letters and numbers.

? 4.3 Judgment character consists of letters and numbers, underscores, and points. And only the underscores and letters

? 4.4 string replacement function.Replace ();

5, browser class

? 5.1 Judging the type of browser

? 5.2 Judging the version of IE

? 5.3 Judging the resolution of the client

?

6, combined class

? 6.1 Judgment of Email.

? 6.2 Verification of mobile phone number

? 6.3 verification of ID card

?

Second, the function

1, time and related control class

? 1.1 calendar

1.2 Time Control

? 13,000 years

1.4 Display the dynamic display clock effect (text, such as OA)

1.5 Display Dynamic Display Clock Effect (Image, Like Watch)

2, form class

? 2.1 Automatic generation form

2.2 Dynamic addition, modify, delete elements in the dropboard

? 2.3 can enter the drop-down frame of the content

2.4 Multi-line text box can only enter iMax text. If you type it, you will automatically reduce the iMAX text (mostly used for SMS send)

?

3, print

3.1 Print Controls

4, event class

? 4.1 Mask right click

? 4.2 Shield all function keys

? 4.3 -> and <- F5 F11, F9, F1

? 4.4 Shield combination key Ctrl N

5, web design class

? 5.1 Continuous scrolling text, picture (note is continuous, no blank appearance in both words and pictures)

? 5.2 HTML editing control class

? 5.3 color selection box control

? 5.4 drop-down menu

? 5.5 two or more levels of drop-down menu

? 5.6 The button is imitated in the IE menu. (Effect, if rongshuxa.com's navigation section)

? 5.7 status bar, the dynamic effect of the Title column (there are a lot of examples, you can study)

? 5.8 After double-click, the web page automatically scrolls

6, tree structure.

? 6.1 ASP SQL version

? 6.2 ASP XML SQL version

? 6.3 Java SQL or Java SQL XML

7, the production of boundless frame effect

8, moving down-pull frame technology

9, text ordering

转载请注明原文地址:https://www.9cbs.com/read-124385.html

New Post(0)