码农教程 - 一技在手,衣食无忧!
Home
HTML/CSS
HTML
CSS
W3.CSS
Bootstrap
SASS
Bootstrap4
Bootstrap5
JavaScript
JavaScript
React
jQuery
Nodejs
VUE
TypeScript
Angular
Server
JAVA
PHP
C
C++
GO
Django
DB
SQL
MYSQL
PostgreSql
MongoDb
Data Analysis
Python
R
Mobile
Kotlin
XML
XML
ASP.NET
C#
ASP
Dev Tools
GIT
Website
How To
AWS
Cybersecurity
AI
AI
Gen AI
Data Science
目录
JS Reference
JS by Alphabet
JavaScript
JS Array
JS Array
at()
concat()
constructor
copyWithin()
entries()
every()
fill()
filter()
find()
findIndex()
flat()
flatMap()
forEach()
from()
includes()
indexOf()
isArray()
join()
keys()
lastIndexOf()
length
map()
pop()
prototype
push()
reduce()
reduceRight()
reverse()
shift()
slice()
some()
sort()
splice()
toString()
unshift()
valueOf()
JS Boolean
JS Boolean
constructor
prototype
toString()
valueOf()
JS Classes
JS Classes
constructor()
extends
static
super
JS Date
JS Date
constructor
getDate()
getDay()
getFullYear()
getHours()
getMilliseconds()
getMinutes()
getMonth()
getSeconds()
getTime()
getTimezoneOffset()
getUTCDate()
getUTCDay()
getUTCFullYear()
getUTCHours()
getUTCMilliseconds()
getUTCMinutes()
getUTCMonth()
getUTCSeconds()
now()
parse()
prototype
setDate()
setFullYear()
setHours()
setMilliseconds()
setMinutes()
setMonth()
setSeconds()
setTime()
setUTCDate()
setUTCFullYear()
setUTCHours()
setUTCMilliseconds()
setUTCMinutes()
setUTCMonth()
setUTCSeconds()
toDateString()
toISOString()
toJSON()
toLocaleDateString()
toLocaleTimeString()
toLocaleString()
toString()
toTimeString()
toUTCString()
UTC()
valueOf()
JS Error
JS Error
name
message
JS Global
JS Global
decodeURI()
decodeURIComponent()
encodeURI()
encodeURIComponent()
escape()
eval()
Infinity
isFinite()
isNaN()
NaN
Number()
parseFloat()
parseInt()
String()
undefined
unescape()
JS JSON
JS JSON
parse()
stringify()
JS Math
JS Math
abs()
acos()
acosh()
asin()
asinh()
atan()
atan2()
atanh()
cbrt()
ceil()
clz32()
cos()
cosh()
E
exp()
expm1()
floor()
fround()
LN2
LN10
log()
log10()
log1p()
log2()
LOG2E
LOG10E
max()
min()
PI
pow()
random()
round()
sign()
sin()
sinh()
sqrt()
SQRT1_2
SQRT2
tan()
tanh()
trunc()
JS Number
JS Number
constructor
EPSILON
isFinite()
isInteger()
isNaN()
isSafeInteger()
MAX_SAFE_INTEGER
MIN_SAFE_INTEGER
MAX_VALUE
MIN_VALUE
NaN
NEGATIVE_INFINITY
POSITIVE_INFINITY
parseFloat()
parseInt()
prototype
toExponential()
toFixed()
toLocaleString()
toPrecision()
toString()
valueOf()
JS Object
JS Object
constructor
keys()
prototype
toString()
valueOf()
JS Operators
JS Precedence
JS RegExp
JS RegExp
g
i
m
[abc]
[^abc]
[0-9]
[^0-9]
(x|y)
.
\w
\W
\d
\D
\s
\S
\b
\B
\0
\n
\f
\r
\t
\v
\xxx
\xdd
\uxxxx
+
*
?
{X}
{X,Y}
{X,}
$
^
?=
?!
constructor
global
ignoreCase
lastIndex
multiline
source
compile()
exec()
test()
toString()
JS Statements
JS Statements
break
class
const
continue
debugger
do...while
for
for...in
for...of
function
if...else
let
return
switch
throw
try...catch
var
while
JS String
JS String
at()
charAt()
charCodeAt()
codePointAt()
concat()
constructor
endsWith()
fromCharCode()
includes()
indexOf()
lastIndexOf()
length
localeCompare()
match()
padEnd()
padStart()
prototype
repeat()
replace()
replaceAll()
search()
slice()
split()
startsWith()
substr()
substring()
toLocaleLowerCase()
toLocaleUpperCase()
toLowerCase()
toString()
toUpperCase()
trim()
trimEnd()
trimStart()
valueOf()
JS TypedArray
Window
Window Object
Window Object
addeventlistener()
alert()
atob()
blur()
btoa()
clearInterval()
clearTimeout()
close()
closed
confirm()
console
defaultStatus
document
focus()
frameElement
frames
history
getComputedStyle()
innerHeight
innerWidth
length
localStorage
location
matchMedia()
moveBy()
moveTo()
name
navigator
open()
opener
outerHeight
outerWidth
pageXOffset
pageYOffset
parent
print()
prompt()
removeEventlistener()
resizeBy()
resizeTo()
screen
screenLeft
screenTop
screenX
screenY
scrollBy()
scrollTo()
scrollX
scrollY
sessionStorage
self
setInterval()
setTimeout()
status
stop()
top
Window Console
Window Console
assert()
clear()
count()
error()
group()
groupCollapsed()
groupEnd()
info()
log()
table()
time()
timeEnd()
trace()
warn()
Window History
Window History
back()
forward()
go()
length
Window Location
Window Location
assign()
hash
host
hostname
href
origin
pathname
port
protocol
reload()
replace()
search
Window Navigator
Window Navigator
appCodeName
appName
appVersion
cookieEnabled
geolocation
javaEnabled()
language
onLine
platform
product
taintEnabled()
userAgent
Window Screen
Window Screen
availHeight
availWidth
colorDepth
height
pixelDepth
width
HTML DOM
HTML Documents
HTML Documents
activeElement
addEventListener()
adoptNode()
anchors
applets
baseURI
body
charset
characterSet
close()
cookie
createAttribute()
createComment()
createDocumentFragment()
createElement()
createEvent()
createTextNode()
defaultView
designMode
doctype
documentElement
documentMode
documentURI
domain
domConfig
embeds
execCommand()
forms
getElementById()
getElementsByClassName()
getElementsByName()
getElementsByTagName()
hasFocus()
head
images
implementation
importNode()
inputEncoding
lastModified
links
normalize()
normalizeDocument()
open()
querySelector()
querySelectorAll()
readyState
referrer
removeEventListener()
renameNode()
scripts
strictErrorChecking
title
URL
write()
writeln()
HTML Elements
HTML Elements
accessKey
addEventListener()
appendChild()
attributes
blur()
childElementCount
childNodes
children
classList
className
click()
clientHeight
clientLeft
clientTop
clientWidth
cloneNode()
closest()
compareDocumentPosition()
contains()
contentEditable
dir
firstChild
firstElementChild
focus()
getAttribute()
getAttributeNode()
getBoundingClientRect()
getElementsByClassName()
getElementsByTagName()
hasAttribute()
hasAttributes()
hasChildNodes()
id
innerHTML
innerText
insertAdjacentElement()
insertAdjacentHTML()
insertAdjacentText()
insertBefore()
isContentEditable
isDefaultNamespace()
isEqualNode()
isSameNode()
isSupported()
lang
lastChild
lastElementChild
matches()
namespaceURI
nextSibling
nextElementSibling
nodeName
nodeType
nodeValue
normalize()
offsetHeight
offsetWidth
offsetLeft
offsetParent
offsetTop
outerHTML
outerText
ownerDocument
parentNode
parentElement
previousSibling
previousElementSibling
querySelector()
querySelectorAll()
remove()
removeAttribute()
removeAttributeNode()
removeChild()
removeEventListener()
replaceChild()
scrollHeight
scrollIntoView()
scrollLeft
scrollTop
scrollWidth
setAttribute()
setAttributeNode()
style
tabIndex
tagName
textContent
title
HTML Attributes
HTML Attributes
getNamedItem()
isId
item()
length
name
removeNamedItem()
setNamedItem()
specified
value
HTML Collection
HTML Collection
item()
length
namedItem()
HTML NodeList
HTML NodeList
entries()
forEach()
item()
keys()
length
values()
HTML DOMTokenList
HTML DOMTokenList
add()
contains()
entries()
forEach()
item()
keys()
length
remove()
replace()
supports()
toggle()
value
values()
HTML Styles
HTML Styles
alignContent
alignItems
alignSelf
animation
animationDelay
animationDirection
animationDuration
animationFillMode
animationIterationCount
animationName
animationTimingFunction
animationPlayState
background
backgroundAttachment
backgroundClip
backgroundColor
backgroundImage
backgroundOrigin
backgroundPosition
backgroundRepeat
backgroundSize
backfaceVisibility
border
borderBottom
borderBottomColor
borderBottomLeftRadius
borderBottomRightRadius
borderBottomStyle
borderBottomWidth
borderCollapse
borderColor
borderImage
borderImageOutset
borderImageRepeat
borderImageSlice
borderImageSource
borderImageWidth
borderLeft
borderLeftColor
borderLeftStyle
borderLeftWidth
borderRadius
borderRight
borderRightColor
borderRightStyle
borderRightWidth
borderSpacing
borderStyle
borderTop
borderTopColor
borderTopLeftRadius
borderTopRightRadius
borderTopStyle
borderTopWidth
borderWidth
bottom
boxShadow
boxSizing
captionSide
caretColor
clear
clip
color
columnCount
columnFill
columnGap
columnRule
columnRuleColor
columnRuleStyle
columnRuleWidth
columns
columnSpan
columnWidth
counterIncrement
counterReset
cssFloat
cursor
direction
display
emptyCells
filter
flex
flexBasis
flexDirection
flexFlow
flexGrow
flexShrink
flexWrap
font
fontFamily
fontSize
fontStyle
fontVariant
fontWeight
fontSizeAdjust
height
isolation
justifyContent
left
letterSpacing
lineHeight
listStyle
listStyleImage
listStylePosition
listStyleType
margin
marginBottom
marginLeft
marginRight
marginTop
maxHeight
maxWidth
minHeight
minWidth
objectFit
objectPosition
opacity
order
orphans
outline
outlineColor
outlineOffset
outlineStyle
outlineWidth
overflow
overflowX
overflowY
padding
paddingBottom
paddingLeft
paddingRight
paddingTop
pageBreakAfter
pageBreakBefore
pageBreakInside
perspective
perspectiveOrigin
position
quotes
resize
right
scrollBehavior
tableLayout
tabSize
textAlign
textAlignLast
textDecoration
textDecorationColor
textDecorationLine
textDecorationStyle
textIndent
textOverflow
textShadow
textTransform
top
transform
transformOrigin
transformStyle
transition
transitionProperty
transitionDuration
transitionTimingFunction
transitionDelay
unicodeBidi
userSelect
verticalAlign
visibility
width
wordBreak
wordSpacing
wordWrap
widows
zIndex
HTML Events
HTML Events
HTML Events
abort
afterprint
animationend
animationiteration
animationstart
beforeprint
beforeunload
blur
canplay
canplaythrough
change
click
contextmenu
copy
cut
dblclick
drag
dragend
dragenter
dragleave
dragover
dragstart
drop
durationchange
ended
error
focus
focusin
focusout
fullscreenchange
fullscreenerror
hashchange
input
invalid
keydown
keypress
keyup
load
loadeddata
loadedmetadata
loadstart
message
mousedown
mouseenter
mouseleave
mousemove
mouseover
mouseout
mouseup
offline
online
open
pagehide
pageshow
paste
pause
play
playing
progress
ratechange
resize
reset
scroll
search
seeked
seeking
select
show
stalled
submit
suspend
timeupdate
toggle
touchcancel
touchend
touchmove
touchstart
transitionend
unload
volumechange
waiting
wheel
HTML Event Objects
HTML Event Objects
Animation Events
Clipboard Events
Drag Events
Events
Focus Events
HashChange Events
Input Events
Keyboard Events
Mouse Events
PageTransition Events
PopState Events
Progress Events
Storage Events
Touch Events
Transition Events
Ui Events
Wheel Events
HTML Event Properties
HTML Event Properties
altKey (Mouse)
altKey (Key)
animationName
bubbles
button
buttons
cancelable
charCode
clientX
clientY
code
ctrlKey (Mouse)
ctrlKey (Key)
currentTarget
data
defaultPrevented
deltaX
deltaY
deltaZ
deltaMode
detail
elapsedTime
elapsedTime
eventPhase
inputType
isTrusted
key
keyCode
location
metaKey (Mouse)
metaKey (Key)
newURL
oldURL
offsetX
offsetY
pageX
pageY
persisted
propertyName
relatedTarget
relatedTarget
screenX
screenY
shiftKey (Mouse)
shiftKey (Key)
target
targetTouches
timeStamp
touches
type
which (Mouse)
which (Key)
view
HTML Event Methods
HTML Event Methods
getModifierState()
preventDefault()
stopImmidiatePropagation()
stopPropagation()
Web APIs
API Canvas
API Console
API Fetch
API Fullscreen
API Fullscreen
exitFullscreen()
fullscreenElement
fullscreenEnabled()
requestFullscreen()
API Geolocation
API Geolocation
coordinates
getCurrentPosition()
position
API History
API MediaQueryList
API Storage
API Storage
clear()
getItem()
key()
length
removeItem()
setItem()
API Validation
API Web
API Web
crypto.getRandomNumber()
HTML Objects
<a>
<abbr>
<address>
<area>
<article>
<aside>
<audio>
<b>
<base>
<bdo>
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<cite>
<code>
<col>
<colgroup>
<datalist>
<dd>
<del>
<details>
<dfn>
<dialog>
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
<figcaption>
<figure>
<footer>
<form>
<head>
<header>
<h1> - <h6>
<hr>
<html>
<i>
<iframe>
<img>
<ins>
<input> button
<input> checkbox
<input> color
<input> date
<input> datetime
<input> datetime-local
<input> email
<input> file
<input> hidden
<input> image
<input> month
<input> number
<input> password
<input> radio
<input> range
<input> reset
<input> search
<input> submit
<input> text
<input> time
<input> url
<input> week
<kbd>
<label>
<legend>
<li>
<link>
<map>
<mark>
<menu>
<menuitem>
<meta>
<meter>
<nav>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<progress>
<q>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strong>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<tfoot>
<th>
<thead>
<tr>
<textarea>
<time>
<title>
<track>
<u>
<ul>
<var>
<video>
Other References
CSSStyleDeclaration
CSSStyleDeclaration
cssText
getPropertyPriority()
getPropertyValue()
item()
length
parentRule
removeProperty()
setProperty()
JS Conversion
JavaScript and HTML DOM
❮ Home
Next ❯
Complete JavaScript and HTML DOM References
All Properties and Methods with Full Examples
Revised January 2023
JavaScript Objects with Examples
Array
String
Number
Math
Date
Global
RegExp
Object
Classes
Error
Boolean
Operators
Statements
JSON
Typed Array
Precedence
Window Objects with Examples
Window
History
Location
Navigator
Screen
HTML DOM Objects with Examples
Document
Element
Attributes
Events
Event Objects
HTMLCollection
Style
Web APIs with Examples
Canvas
Console
Fetch
Fullscreen
Geolocation
History
MediaQueryList
Storage
Validation
HTML Elements with Examples
a
abbr
address
area
article
aside
audio
b
base
bdo
blockquote
body
br
button
canvas
caption
cite
code
col
colgroup
datalist
dd
del
details
dfn
dialog
div
dl
dt
em
embed
fieldset
figcaption
figure
footer
form
head
header
h1 - h6
hr
html
i
iframe
img
ins
input button
input checkbox
input color
input date
input datetime
input datetime-local
input email
input file
input hidden
input image
input month
input number
input password
input radio
input range
input reset
input search
input submit
input text
input time
input url
input week
kbd
label
legend
li
link
map
mark
menu
menuitem
meta
meter
nav
object
ol
optgroup
option
output
p
param
pre
progress
q
s
samp
script
section
select
small
source
span
strong
style
sub
summary
sup
table
tbody
td
tfoot
th
thead
tr
textarea
time
title
track
u
ul
var
video
Other
CSSStyleDeclaration
JS Conversion
JavaScript Tutorial
Visit Our JavaScript Tutorial »
❮ Home
Next ❯
纠错反馈
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!
标注
直接在页面拖动鼠标来标注反馈区域!
下一步
反馈内容
联系方式(邮箱)
返回
提交