当使用JavaScript编写网页代码时,有很多API可以使用。以下是所有对象、类型等接口的列表,你在开发网页应用程序或站点时使用它们。
API文档地址:https://developer.mozilla.org/zh-CN/docs/Web/API
A
ANGLE_instanced_arrays
AbstractWorker
AmbientLightSensor
AmbientLightSensorReading
AnalyserNode
Animation
AnimationEffectReadOnly
AnimationEffectTiming
AnimationEffectTimingProperties
AnimationEffectTimingReadOnly
AnimationEvent
AnimationPlaybackEvent
AnimationTimeline
ArrayBufferView
Attr
AudioBuffer
AudioBufferSourceNode
AudioContext
AudioDestinationNode
AudioListener
AudioNode
AudioParam
AudioProcessingEvent
AudioScheduledSourceNode
BatteryManager
BeforeInstallPromptEvent
BeforeUnloadEvent
BiquadFilterNode
Blob
BlobBuilder
BlobEvent
Bluetooth
BluetoothAdvertisingData
BluetoothCharacteristicProperties
BluetoothRemoteGATTCharacteristic
BluetoothRemoteGATTDescriptor
BluetoothRemoteGATTServer
BluetoothStatusChangedEvent
Body
BroadcastChannel
BudgetService
BudgetState
BufferSource
ByteString
CDATASection
CSS
CSSConditionRule
CSSCounterStyleRule
CSSGroupingRule
CSSKeyframeRule
CSSKeyframesRule
CSSMatrix
CSSMediaRule
CSSNamespaceRule
CSSPageRule
CSSPrimitiveValue
CSSRule
CSSRuleList
CSSStyleDeclaration
CSSStyleRule
CSSStyleSheet
CSSSupportsRule
CSSValue
CSSValueList
Cache
CacheStorage
CanvasCaptureMediaStream
CanvasGradient
CanvasImageSource
CanvasPattern
CanvasRenderingContext2D
CaretPosition
ChannelMergerNode
ChannelSplitterNode
CharacterData
ChildNode
ChromeWorker
Client
Clients
ClipboardEvent
CloseEvent
Comment
CompositionEvent
Console
ConstantSourceNode
ConstrainBoolean
ConstrainDOMString
ConstrainDouble
ConstrainLong
ConvolverNode
Coordinates
Credential
CredentialsContainer
Crypto
CryptoKey
CustomElementRegistry
CustomEvent
DOMConfiguration
DOMError
DOMErrorHandler
DOMException
DOMHighResTimeStamp
DOMImplementation
DOMImplementationList
DOMImplementationRegistry
DOMImplementationSource
DOMLocator
DOMMatrix
DOMMatrixReadOnly
DOMObject
DOMParser
DOMPoint
DOMPointReadOnly
DOMRect
DOMRectReadOnly
DOMString
DOMStringList
DOMStringMap
DOMTimeStamp
DOMTokenList
DOMUserData
DataTransfer
DataTransferItem
DataTransferItemList
DedicatedWorkerGlobalScope
DelayNode
DeviceAcceleration
DeviceLightEvent
DeviceMotionEvent
DeviceOrientationEvent
DeviceProximityEvent
DeviceRotationRate
DirectoryEntrySync
DirectoryReaderSync
Document
DocumentFragment
DocumentOrShadowRoot
DocumentTimeline
DocumentTouch
DocumentType
DoubleRange
DragEvent
DynamicsCompressorNode
EXT_blend_minmax
EXT_color_buffer_float
EXT_color_buffer_half_float
EXT_disjoint_timer_query
EXT_frag_depth
EXT_sRGB
EXT_shader_texture_lod
EXT_texture_filter_anisotropic
Element
ElementTraversal
Entity
EntityReference
EntrySync
ErrorEvent
Event
EventListener
EventSource
EventTarget
ExtendableEvent
ExtendableMessageEvent
FederatedCredential
FetchController
FetchEvent
FetchObserver
FetchSignal
File
FileEntrySync
FileError
FileException
FileList
FileReader
FileReaderSync
FileRequest
FileSystem
FileSystemDirectoryEntry
FileSystemDirectoryReader
FileSystemEntry
FileSystemFileEntry
FileSystemFlags
FileSystemSync
FocusEvent
FontFace
FontFaceSet
FontFaceSetLoadEvent
FormData
GainNode
Gamepad
GamepadButton
GamepadEvent
GamepadHapticActuator
GamepadPose
Geolocation
GestureEvent
GlobalEventHandlers
GlobalFetch
HMDVRDevice
HTMLAnchorElement
HTMLAreaElement
HTMLAudioElement
HTMLBRElement
HTMLBaseElement
HTMLBaseFontElement
HTMLBodyElement
HTMLButtonElement
HTMLCanvasElement
HTMLCollection
HTMLContentElement
HTMLDListElement
HTMLDataElement
HTMLDataListElement
HTMLDialogElement
HTMLDivElement
HTMLDocument
HTMLElement
HTMLEmbedElement
HTMLFieldSetElement
HTMLFontElement
HTMLFormControlsCollection
HTMLFormElement
HTMLFrameSetElement
HTMLHRElement
HTMLHeadElement
HTMLHeadingElement
HTMLHtmlElement
HTMLHyperlinkElementUtils
HTMLIFrameElement
HTMLImageElement
HTMLInputElement
HTMLIsIndexElement
HTMLKeygenElement
HTMLLIElement
HTMLLabelElement
HTMLLegendElement
HTMLLinkElement
HTMLMapElement
HTMLMediaElement
HTMLMetaElement
HTMLMeterElement
HTMLModElement
HTMLOListElement
HTMLObjectElement
HTMLOptGroupElement
HTMLOptionElement
HTMLOptionsCollection
HTMLOutputElement
HTMLParagraphElement
HTMLParamElement
HTMLPictureElement
HTMLPreElement
HTMLProgressElement
HTMLQuoteElement
HTMLScriptElement
HTMLSelectElement
HTMLShadowElement
HTMLSlotElement
HTMLSourceElement
HTMLSpanElement
HTMLStyleElement
HTMLTableCaptionElement
HTMLTableCellElement
HTMLTableColElement
HTMLTableDataCellElement
HTMLTableElement
HTMLTableHeaderCellElement
HTMLTableRowElement
HTMLTableSectionElement
HTMLTemplateElement
HTMLTextAreaElement
HTMLTimeElement
HTMLTitleElement
HTMLTrackElement
HTMLUListElement
HTMLUnknownElement
HTMLVideoElement
HashChangeEvent
Headers
History
IDBCursor
IDBCursorSync
IDBCursorWithValue
IDBDatabase
IDBDatabaseException
IDBDatabaseSync
IDBEnvironment
IDBEnvironmentSync
IDBFactory
IDBFactorySync
IDBIndex
IDBIndexSync
IDBKeyRange
IDBLocaleAwareKeyRange
IDBMutableFile
IDBObjectStore
IDBObjectStoreSync
IDBOpenDBRequest
IDBRequest
IDBTransaction
IDBTransactionSync
IDBVersionChangeEvent
IDBVersionChangeRequest
IIRFilterNode
IdentityManager
IdleDeadline
ImageBitmap
ImageBitmapFactories
ImageBitmapRenderingContext
ImageData
Index
InputDeviceCapabilities
InputEvent
InstallEvent
InstallEvent
InstallTrigger
IntersectionObserver
IntersectionObserverEntry
L10n.formatValue
L10n.get
L10n.language.code
L10n.language.direction
L10n.once
L10n.ready
L10n.readyState
L10n.setAttributes
LinkStyle
LocalFileSystem
LocalFileSystemSync
LocalMediaStream
Location
LockedFile
LongRange
MIDIAccess
MIDIConnectionEvent
MIDIInput
MIDIInputMap
MIDIOutputMap
MSGestureEvent
MediaDeviceInfo
MediaDevices
MediaElementAudioSourceNode
MediaError
MediaKeyMessageEvent
MediaKeySession
MediaKeyStatusMap
MediaKeySystemAccess
MediaKeySystemConfiguration
MediaKeys
MediaMetadata
MediaQueryList
MediaQueryListEvent
MediaQueryListListener
MediaRecorder
MediaSession
MediaSource
MediaStream
MediaStreamAudioDestinationNode
MediaStreamAudioSourceNode
MediaStreamConstraints
MediaStreamEvent
MediaStreamTrack
MediaStreamTrackEvent
MediaTrackConstraints
MediaTrackSettings
MediaTrackSupportedConstraints
MessageChannel
MessageEvent
MessagePort
Metadata
MimeType
MimeTypeArray
MouseEvent
MouseScrollEvent
MouseWheelEvent
MutationEvent
MutationObserver
MutationRecord
NameList
NamedNodeMap
Navigator
NavigatorConcurrentHardware
NavigatorGeolocation
NavigatorID
NavigatorLanguage
NavigatorOnLine
NavigatorPlugins
NavigatorStorage
NetworkInformation
Node
NodeFilter
NodeIterator
NodeList
NonDocumentTypeChildNode
Notation
Notification
NotificationEvent
NotifyAudioAvailableEvent
OES_element_index_uint
OES_standard_derivatives
OES_texture_float
OES_texture_float_linear
OES_texture_half_float
OES_texture_half_float_linear
OES_vertex_array_object
ObserverCallback
OfflineAudioCompletionEvent
OfflineAudioContext
OffscreenCanvas
OscillatorNode
PageTransitionEvent
PannerNode
ParentNode
PasswordCredential
Path2D
PaymentAddress
PaymentRequest
PaymentRequestUpdateEvent
PaymentResponse
Performance
PerformanceEntry
PerformanceFrameTiming
PerformanceLongTaskTiming
PerformanceMark
PerformanceMeasure
PerformanceNavigation
PerformanceNavigationTiming
PerformanceObserver
PerformanceObserverEntryList
PerformanceResourceTiming
PerformanceTiming
PeriodicSyncEvent
PeriodicSyncManager
PeriodicSyncRegistration
PeriodicWave
PermissionStatus
Permissions
Plugin
PluginArray
Point
PointerEvent
PopStateEvent
PortCollection
Position
PositionError
PositionOptions
PositionSensorVRDevice
Presentation
PresentationAvailability
PresentationConnection
PresentationConnectionAvailableEvent
PresentationConnectionCloseEvent
PresentationConnectionClosedEvent
PresentationConnectionList
PresentationReceiver
PresentationRequest
ProcessingInstruction
ProgressEvent
PromiseRejection
PromiseRejectionEvent
PromiseResolver
PushEvent
PushManager
PushMessageData
PushRegistrationManager
PushSubscription
RTCCertificate
RTCConfiguration
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCIceCandidate
RTCIceServer
RTCIdentityAssertion
RTCIdentityErrorEvent
RTCIdentityEvent
RTCPeerConnection
RTCPeerConnectionIceEvent
RTCRtpSender
RTCSctpTransport
RTCSessionDescription
RTCSessionDescriptionCallback
RTCStatsReport
RadioNodeList
RandomSource
Range
ReadableStream
RenderingContext
Request
Response
SVGAElement
SVGAltGlyphDefElement
SVGAltGlyphElement
SVGAltGlyphItemElement
SVGAngle
SVGAnimateColorElement
SVGAnimateElement
SVGAnimateMotionElement
SVGAnimateTransformElement
SVGAnimatedAngle
SVGAnimatedBoolean
SVGAnimatedEnumeration
SVGAnimatedInteger
SVGAnimatedLength
SVGAnimatedLengthList
SVGAnimatedNumber
SVGAnimatedNumberList
SVGAnimatedPoints
SVGAnimatedPreserveAspectRatio
SVGAnimatedRect
SVGAnimatedString
SVGAnimatedTransformList
SVGAnimationElement
SVGCircleElement
SVGClipPathElement
SVGColorProfileElement
SVGComponentTransferFunctionElement
SVGCursorElement
SVGDefsElement
SVGDescElement
SVGElement
SVGEllipseElement
SVGEvent
SVGExternalResourcesRequired
SVGFEBlendElement
SVGFEComponentTransferElement
SVGFECompositeElement
SVGFEConvolveMatrixElement
SVGFEDiffuseLightingElement
SVGFEDisplacementMapElement
SVGFEDistantLightElement
SVGFEDropShadowElement
SVGFEFloodElement
SVGFEFuncAElement
SVGFEFuncBElement
SVGFEFuncGElement
SVGFEFuncRElement
SVGFEGaussianBlurElement
SVGFEImageElement
SVGFEMergeElement
SVGFEMergeNodeElement
SVGFEMorphologyElement
SVGFEOffsetElement
SVGFEPointLightElement
SVGFESpecularLightingElement
SVGFESpotLightElement
SVGFETileElement
SVGFETurbulenceElement
SVGFilterElement
SVGFilterPrimitiveStandardAttributes
SVGFontElement
SVGFontFaceElement
SVGFontFaceFormatElement
SVGFontFaceNameElement
SVGFontFaceSrcElement
SVGFontFaceUriElement
SVGForeignObjectElement
SVGGElement
SVGGeometryElement
SVGGlyphElement
SVGGlyphRefElement
SVGGradientElement
SVGGraphicsElement
SVGHKernElement
SVGImageElement
SVGLength
SVGLengthList
SVGLineElement
SVGLinearGradientElement
SVGMPathElement
SVGMaskElement
SVGMatrix
SVGMeshElement
SVGMetadataElement
SVGMissingGlyphElement
SVGNumber
SVGNumberList
SVGPathElement
SVGPatternElement
SVGPoint
SVGPolygonElement
SVGPolylineElement
SVGPreserveAspectRatio
SVGRadialGradientElement
SVGRect
SVGRectElement
SVGRenderingIntent
SVGSVGElement
SVGScriptElement
SVGSetElement
SVGSolidcolorElement
SVGStopElement
SVGStringList
SVGStylable
SVGStyleElement
SVGSwitchElement
SVGSymbolElement
SVGTRefElement
SVGTSpanElement
SVGTests
SVGTextContentElement
SVGTextElement
SVGTextPathElement
SVGTextPositioningElement
SVGTitleElement
SVGTransform
SVGTransformList
SVGTransformable
SVGURIReference
SVGUnitTypes
SVGUseElement
SVGVKernElement
SVGViewElement
SVGZoomAndPan
Screen
ScriptProcessorNode
SecurityPolicyViolationEvent
Selection
ServiceWorker
ServiceWorkerContainer
ServiceWorkerGlobalScope
ServiceWorkerMessageEvent
ServiceWorkerRegistration
ServiceWorkerState
ShadowRoot
SharedKeyframeList
SharedWorker
SharedWorkerGlobalScope
SourceBuffer
SourceBufferList
SpeechGrammar
SpeechGrammarList
SpeechRecognition
SpeechRecognitionAlternative
SpeechRecognitionError
SpeechRecognitionEvent
SpeechRecognitionResult
SpeechRecognitionResultList
SpeechSynthesis
SpeechSynthesisErrorEvent
SpeechSynthesisEvent
SpeechSynthesisUtterance
SpeechSynthesisVoice
StereoPannerNode
Storage
StorageEstimate
StorageEvent
StorageManager
StorageQuota
StyleSheet
StyleSheetList
SubtleCrypto
SyncEvent
SyncManager
TaskAttributionTiming
Text
TextDecoder
TextEncoder
TextMetrics
TextTrack
TimeEvent
TimeRanges
Touch
TouchEvent
TouchList
TrackDefault
TrackDefaultList
Transferable
TransitionEvent
TreeWalker
TypeInfo
VRDisplay
VRDisplayCapabilities
VRDisplayEvent
VREyeParameters
VRFieldOfView
VRFieldOfViewReadOnly
VRFrameData
VRLayerInit
VRPose
VRStageParameters
VTTCue
ValidityState
VideoPlaybackQuality
WEBGL_color_buffer_float
WEBGL_compressed_texture_astc
WEBGL_compressed_texture_atc
WEBGL_compressed_texture_etc
WEBGL_compressed_texture_etc1
WEBGL_compressed_texture_pvrtc
WEBGL_compressed_texture_s3tc
WEBGL_compressed_texture_s3tc_srgb
WEBGL_debug_renderer_info
WEBGL_debug_shaders
WEBGL_depth_texture
WEBGL_draw_buffers
WEBGL_lose_context
WaveShaperNode
WebGL
WebGL2RenderingContext
WebGLActiveInfo
WebGLBuffer
WebGLContextEvent
WebGLFramebuffer
WebGLProgram
WebGLQuery
WebGLRenderbuffer
WebGLRenderingContext
WebGLSampler
WebGLShader
WebGLShaderPrecisionFormat
WebGLSync
WebGLTexture
WebGLTransformFeedback
WebGLUniformLocation
WebGLVertexArrayObject
WebSocket
WebSockets
WheelEvent
Window
WindowBase64
WindowClient
WindowEventHandlers
WindowOrWorkerGlobalScope
WindowTimers
Worker
WorkerGlobalScope
WorkerLocation
WorkerNavigator