JavaScript important knowledge points carding

Source: Internet
Author: User

Javascript key points of knowledge carding

one. Javascript Process Control

    1. The data types commonly used in JS
    2. Use of the VAR keyword
    3. If–else If–else
    4. Switch
    5. While
    6. For

two. Javascript Common Functions

    1. 1. String Functions
      1. Substring
      2. IndexOf
      3. LastIndexOf
      4. CharAt
      5. Replace
      6. Split
      7. toLowerCase
      8. toUpperCase
    2. 2. Mathematical arithmetic functions
      1. Math.Abs
      2. Math.ceil
      3. Math.floor
      4. Math.Round
      5. Math.pow
      6. Math.random
    3. 3. data type conversion Functions
      1. parseint
      2. Parsefloat

three. Javascript dialog Box

    1. Alert Prompt dialog box
    2. Confirm Confirmation Dialog box
    3. Prompt Input dialog box

four. Javascript built-in objects

    1. 1. Array objects (one-dimensional arrays only)
      1. Length property: Gets the size of the array
      2. Push function: Adds an element to the end of an array
      3. Pop function: Remove the trailing elements of an array from the array
      4. Slice function: Extracts a specified number of elements starting at the specified position in the array
      5. Sort method: Sorts the elements in the array by default
      6. Reverse function: Invert the elements in an array
      7. Join function: Concatenate all elements of an array into a string using the specified delimiter
    2. 1. Time Objects
      1. toLocaleDateString ()
      2. toLocaleTimeString ()
      3. getFullYear () GetMonth () GetDay ()
      4. New Date (): Gets the current time of the system
      5. GetHours () getminutes () getseconds ()
      6. setFullYear () setmonth () Setday () sethours () setminutes () setseconds ()

3.1.window Object

1. window.location

2. window.open

3. Window.history

Five. Javascript Dom Operation

    1. getElementById
    2. Getelementsbyname
    3. getElementsByTagName
    4. Assigning Values to text boxes
    5. Set check box radio button selected state
    6. Let DOM element get cursor
    7. Controlling the display and hiding of DOM elements
    8. DOM element Creation | add | Delete (optional)

Six. Javascript Event Handling

    1. Dom elements Common events load, click, DblClick, Blur, focus, change, mouse, KeyDown, KeyUp, MouseOver, mouseout
    2. The use of this in the event binding function, for example: <div onclick= "DisplayText (this);" ></div>

Seven. Javascript Timer

    1. setinterval function
    2. settimeout function
    3. clearinterval function
    4. cleartimeout function

JavaScript important knowledge points carding

Related Article

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.