Table of Contents
JS Words
Home Web Front-end JS Tutorial Detailed introduction to common JavaScript words

Detailed introduction to common JavaScript words

Jun 27, 2017 am 10:48 AM
javascript js word Commonly used tidy

JS Words

push: Add an array element

document: Document

pop: Delete the last array element

console: Console

shift: delete the first array element

string: string

Concat combined array

undefined: undefined

typeof: Keyword

join: Convert array to specified delimiter

slice: Return specified array

length: Array length

Array: Array

number: number

boolean: Boolean

alert: prompt box

parseInt: converted to integer value

continue: continue

is NaN: not a number

sort: ascending order

break: truncate out

reverse: reverse order

object: object type

parseFloat: Convert to floating point value

index: index

floor: round down

variable: variable

ceil: round up

round: Rounding

abs: Return the absolute value

eval: Parse the string and operate

max: Compare the maximum value

return : Return

min: Compare the minimum value

addEventListener: Event name function

to.fixed: Retain decimal point

attachEvent: (on) event name

random: random number

eletment: element

onclick: mouse click event

eventName: event name

ondblclick: mouse double click Event

function: Function

onselect: Content is selected event

removeEventListener: Event release

onmouseover: Mouse move event

detachEvent : Delete registered events

onmouseout: Mouse out event

open(): Pop up a new window

onfocus: Get focus event

function: function (Method)

showModalDialog: pop up a modal window

close(): close the current window

onblur: lose focus event

onkeydown: keyboard pressed Event (before)

Date: Date object

onkeyup: Keyboard release event

onkeypress: Keyboard press event (after)

getFullYear() : Year

getMonth(): Month (0--11)

getDate(): Day

getDay(): Day of the week (Monday to Saturday)

getHours(): hours (0--23)

getMinites(): minutes

getSeconds(): seconds (0--59)

getMilliseconds(): Number of milliseconds

getTime(): Number of milliseconds from 1970 to the present

Date.now(): Value of milliseconds from 1970 to the present

tolocaleDatestring() : Output localized date

setTimeout: Delay time

tolocaleTimestring(): Output localized time

clearTimeout: Timer object

tolocalestring: Output localized date and time

setInterval: interval time

clearInterval: stop

window.status: browser status bar information

window.screen :Screen information

screen.width:Screen width

screen.height:Screen height

screen.availwidth:Remove taskbar width

screen.avaiheight : Remove the taskbar height

history: Browsing history

location: Address bar object

onchange; content change event

onkeydown; keyboard press event (Before)

onkeyup;Keyboard release event

onkeypress;Keyboard press event (After)

navigator: used to obtain user browser information

appCodeName: String representation of the browser code name

appName: Returns the name of the browser

appVersion: Returns the platform and version information of the browser

platform: Returns the running Browser's operating system platform

userAgent: Returns the value of the

user-agent: header sent by the client to the server

Exception: Exception unexpected situation (try-- -catch)

onload: Triggered when the page is loaded

How to get the element object:

  • getElementByld:

  • getElementsByName:

  • gatElementsByTagName:

  • getElementByClassName:

  • Encountered during the learning process If you have any questions or want to obtain learning resources, you are welcome to join the learning exchange

The above is the detailed content of Detailed introduction to common JavaScript words. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Recommended: Excellent JS open source face detection and recognition project Recommended: Excellent JS open source face detection and recognition project Apr 03, 2024 am 11:55 AM

Face detection and recognition technology is already a relatively mature and widely used technology. Currently, the most widely used Internet application language is JS. Implementing face detection and recognition on the Web front-end has advantages and disadvantages compared to back-end face recognition. Advantages include reducing network interaction and real-time recognition, which greatly shortens user waiting time and improves user experience; disadvantages include: being limited by model size, the accuracy is also limited. How to use js to implement face detection on the web? In order to implement face recognition on the Web, you need to be familiar with related programming languages ​​and technologies, such as JavaScript, HTML, CSS, WebRTC, etc. At the same time, you also need to master relevant computer vision and artificial intelligence technologies. It is worth noting that due to the design of the Web side

How to use Microsoft Reader Coach with Immersive Reader How to use Microsoft Reader Coach with Immersive Reader Mar 09, 2024 am 09:34 AM

In this article, we will show you how to use Microsoft Reading Coach in Immersive Reader on Windows PC. Reading guidance features help students or individuals practice reading and develop their literacy skills. You start by reading a passage or a document in a supported application, and based on this, your reading report is generated by the Reading Coach tool. The reading report shows your reading accuracy, the time it took you to read, the number of words correct per minute, and the words you found most challenging while reading. You will also be able to practice the words, which will help develop your reading skills in general. Currently, only Office or Microsoft365 (including OneNote for Web and Word for We

PHP and JS Development Tips: Master the Method of Drawing Stock Candle Charts PHP and JS Development Tips: Master the Method of Drawing Stock Candle Charts Dec 18, 2023 pm 03:39 PM

With the rapid development of Internet finance, stock investment has become the choice of more and more people. In stock trading, candle charts are a commonly used technical analysis method. It can show the changing trend of stock prices and help investors make more accurate decisions. This article will introduce the development skills of PHP and JS, lead readers to understand how to draw stock candle charts, and provide specific code examples. 1. Understanding Stock Candle Charts Before introducing how to draw stock candle charts, we first need to understand what a candle chart is. Candlestick charts were developed by the Japanese

Simple JavaScript Tutorial: How to Get HTTP Status Code Simple JavaScript Tutorial: How to Get HTTP Status Code Jan 05, 2024 pm 06:08 PM

JavaScript tutorial: How to get HTTP status code, specific code examples are required. Preface: In web development, data interaction with the server is often involved. When communicating with the server, we often need to obtain the returned HTTP status code to determine whether the operation is successful, and perform corresponding processing based on different status codes. This article will teach you how to use JavaScript to obtain HTTP status codes and provide some practical code examples. Using XMLHttpRequest

How can I start memorizing words again when I'm memorizing them ink? Share the method of memorizing words and re-memorizing words in Mo Mo! How can I start memorizing words again when I'm memorizing them ink? Share the method of memorizing words and re-memorizing words in Mo Mo! Mar 15, 2024 pm 03:28 PM

Are you curious about how to start memorizing words again when Mo Mo memorizes them? Mo Mo Bei Vocabulary is a very easy-to-use English word learning software. Users can choose an English vocabulary library for English learning based on their English level and learning intentions. They can also use examples, mnemonics and other methods to better understand and memorize words. Some friends have finished memorizing vocabulary and want to start memorizing the same vocabulary book again, but don't know how to do it? Today, the editor has sorted out the methods for memorizing words and re-memorizing words for you all! Come and download it if it helps you! 1. How can I start memorizing words again? Share the method of memorizing words and re-memorizing words in Mo Mo! 1. Open the Mo Mo Bei Vocabulary app, see the check-in function on the review page, and select the date of the day. 2. Click to enter and you will see the option to view details. 3. After jumping to the page, select

The relationship between js and vue The relationship between js and vue Mar 11, 2024 pm 05:21 PM

The relationship between js and vue: 1. JS as the cornerstone of Web development; 2. The rise of Vue.js as a front-end framework; 3. The complementary relationship between JS and Vue; 4. The practical application of JS and Vue.

Learn the canvas framework and explain the commonly used canvas framework in detail Learn the canvas framework and explain the commonly used canvas framework in detail Jan 17, 2024 am 11:03 AM

Explore the Canvas framework: To understand what are the commonly used Canvas frameworks, specific code examples are required. Introduction: Canvas is a drawing API provided in HTML5, through which we can achieve rich graphics and animation effects. In order to improve the efficiency and convenience of drawing, many developers have developed different Canvas frameworks. This article will introduce some commonly used Canvas frameworks and provide specific code examples to help readers gain a deeper understanding of how to use these frameworks. 1. EaselJS framework Ea

Where are the words that were chopped off in Hundred Words Chop? Word search tutorial that can be used to eliminate hundreds of words! Where are the words that were chopped off in Hundred Words Chop? Word search tutorial that can be used to eliminate hundreds of words! Mar 15, 2024 pm 03:52 PM

1. Where are the words that have been removed from the Hundred Words Cut? Word search tutorial that can be used to eliminate hundreds of words! 1. Go to the home page and click on the word list. 2. After jumping to the page, select the chopped word option. 3. After entering the interface, you can see the words that have been chopped off by the user. 4. If you want to restore the chopped word, click the Edit option. 5. Find the word that needs to be restored and click the cut icon on the right to restore the word. 6. Return to the learned word interface and you can see the words you just recovered.

See all articles