Web API
Web API 接口参考
在使用 JavaScript 编写 Web 代码时,有许多 Web API 可供调用。下面是开发Web应用程序或网站时可能使用的所有API和接口 (对象类型)的列表。
Web API主要用于JavaScript,但也可能有例外。
规范
这是一个所有可用API的列表。
A
B
C
- CSS Counter Styles
- CSS Font Loading API
- CSSOM
- Canvas API
- Channel Messaging API
- Console API
- Credential Management API
D
E
F
G
H
I
L
M
- Media Capabilities API
- Media Capture and Streams
- Media Session API
- Media Source Extensions
- MediaStream Recording
N
P
- Page Visibility API
- Payment Request API
- Performance API
- Performance Timeline API
- Permissions API
- Pointer Events
- Pointer Lock API
- Proximity Events
- Push API
R
S
T
U
V
W
- Web Animations
- Web Audio API
- Web Authentication API
- Web Crypto API
- Web Notifications
- Web Storage API
- Web Workers API
- WebGL
- WebRTC
- WebVR API
- WebVTT
- WebXR Device API
- Websockets API
接口
这是一个所有接口(即对象类型)的列表。
A
ANGLE_instanced_arrays
AbortController
AbortSignal
AbsoluteOrientationSensor
AbstractRange
AbstractWorker
Accelerometer
AddressErrors
AesCbcParams
AesCtrParams
AesGcmParams
AesKeyGenParams
AmbientLightSensor
AnalyserNode
Animation
AnimationEffect
AnimationEvent
AnimationPlaybackEvent
AnimationTimeline
ArrayBufferView
Attr
AudioBuffer
AudioBufferSourceNode
AudioConfiguration
AudioContext
AudioContextLatencyCategory
AudioContextOptions
AudioDestinationNode
AudioListener
AudioNode
AudioNodeOptions
AudioParam
AudioParamDescriptor
AudioParamMap
AudioProcessingEvent
AudioScheduledSourceNode
AudioTrack
AudioTrackList
AudioWorklet
AudioWorkletGlobalScope
AudioWorkletNode
AudioWorkletNodeOptions
AudioWorkletProcessor
AuthenticatorAssertionResponse
AuthenticatorAttestationResponse
AuthenticatorResponse
B
BaseAudioContext
BasicCardRequest
BasicCardResponse
BatteryManager
BeforeInstallPromptEvent
BeforeUnloadEvent
BiquadFilterNode
Blob
BlobBuilder
BlobEvent
Bluetooth
BluetoothAdvertisingData
BluetoothCharacteristicProperties
BluetoothDevice
BluetoothRemoteGATTCharacteristic
BluetoothRemoteGATTDescriptor
BluetoothRemoteGATTServer
BluetoothRemoteGATTService
Body
BroadcastChannel
BudgetService
BudgetState
BufferSource
ByteLengthQueuingStrategy
ByteString
C
CDATASection
CSS
CSSConditionRule
CSSCounterStyleRule
CSSGroupingRule
CSSImageValue
CSSKeyframeRule
CSSKeyframesRule
CSSKeywordValue
CSSMathProduct
CSSMathSum
CSSMathValue
CSSMediaRule
CSSNamespaceRule
CSSNumericValue
CSSOMString
CSSPageRule
CSSPositionValue
CSSPrimitiveValue
CSSPseudoElement
CSSRule
CSSRuleList
CSSStyleDeclaration
CSSStyleRule
CSSStyleSheet
CSSStyleValue
CSSSupportsRule
CSSUnitValue
CSSUnparsedValue
CSSValue
CSSValueList
CSSVariableReferenceValue
Cache
CacheStorage
CanvasCaptureMediaStreamTrack
CanvasGradient
CanvasImageSource
CanvasPattern
CanvasRenderingContext2D
CaretPosition
ChannelMergerNode
ChannelSplitterNode
CharacterData
ChildNode
Client
Clients
Clipboard
ClipboardEvent
ClipboardItem
CloseEvent
Comment
CompositionEvent
ConstantSourceNode
ConstrainBoolean
ConstrainDOMString
ConstrainDouble
ConstrainULong
ConvolverNode
CountQueuingStrategy
CrashReportBody
Credential
CredentialsContainer
Crypto
CryptoKey
CryptoKeyPair
CustomElementRegistry
CustomEvent
D
DOMConfiguration
DOMError
DOMException
DOMHighResTimeStamp
DOMImplementation
DOMImplementationList
DOMLocator
DOMMatrix
DOMMatrixReadOnly
DOMObject
DOMParser
DOMPoint
DOMPointInit
DOMPointReadOnly
DOMQuad
DOMRect
DOMRectReadOnly
DOMString
DOMStringList
DOMStringMap
DOMTimeStamp
DOMTokenList
DOMUserData
DataTransfer
DataTransferItem
DataTransferItemList
DedicatedWorkerGlobalScope
DelayNode
DeprecationReportBody
DeviceLightEvent
DeviceMotionEvent
DeviceMotionEventAcceleration
DeviceMotionEventRotationRate
DeviceOrientationEvent
DeviceProximityEvent
DirectoryEntrySync
DirectoryReaderSync
DisplayMediaStreamConstraints
Document
DocumentFragment
DocumentOrShadowRoot
DocumentTimeline
DocumentTouch
DocumentType
DoubleRange
DragEvent
DynamicsCompressorNode
E
EXT_blend_minmax
EXT_color_buffer_float
EXT_color_buffer_half_float
EXT_disjoint_timer_query
EXT_float_blend
EXT_frag_depth
EXT_sRGB
EXT_shader_texture_lod
EXT_texture_compression_bptc
EXT_texture_compression_rgtc
EXT_texture_filter_anisotropic
EcKeyGenParams
EcKeyImportParams
EcdhKeyDeriveParams
EcdsaParams
EffectTiming
Element
ElementCSSInlineStyle
ElementTraversal
ErrorEvent
Event
EventListener
EventSource
EventTarget
ExtendableEvent
ExtendableMessageEvent
F
FeaturePolicy
FederatedCredential
FetchEvent
File
FileEntrySync
FileError
FileException
FileList
FileReader
FileReaderSync
FileRequest
FileSystem
FileSystemDirectoryEntry
FileSystemDirectoryReader
FileSystemEntry
FileSystemEntrySync
FileSystemFileEntry
FileSystemFlags
FileSystemSync
FocusEvent
FontFace
FontFaceSet
FontFaceSetLoadEvent
FormData
FormDataEntryValue
FormDataEvent
FullscreenOptions
G
GainNode
Gamepad
GamepadButton
GamepadEvent
GamepadHapticActuator
GamepadPose
Geolocation
GeolocationCoordinates
GeolocationPosition
GeolocationPositionError
GeometryUtils
GestureEvent
GlobalEventHandlers
Gyroscope
H
HMDVRDevice
HTMLAnchorElement
HTMLAreaElement
HTMLAudioElement
HTMLBRElement
HTMLBaseElement
HTMLBaseFontElement
HTMLBodyElement
HTMLButtonElement
HTMLCanvasElement
HTMLCollection
HTMLContentElement
HTMLDListElement
HTMLDataElement
HTMLDataListElement
HTMLDetailsElement
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
HTMLMarqueeElement
HTMLMediaElement
HTMLMenuElement
HTMLMenuItemElement
HTMLMetaElement
HTMLMeterElement
HTMLModElement
HTMLOListElement
HTMLObjectElement
HTMLOptGroupElement
HTMLOptionElement
HTMLOptionsCollection
HTMLOrForeignElement
HTMLOutputElement
HTMLParagraphElement
HTMLParamElement
HTMLPictureElement
HTMLPreElement
HTMLProgressElement
HTMLQuoteElement
HTMLScriptElement
HTMLSelectElement
HTMLShadowElement
HTMLSlotElement
HTMLSourceElement
HTMLSpanElement
HTMLStyleElement
HTMLTableCaptionElement
HTMLTableCellElement
HTMLTableColElement
HTMLTableElement
HTMLTableRowElement
HTMLTableSectionElement
HTMLTemplateElement
HTMLTextAreaElement
HTMLTimeElement
HTMLTitleElement
HTMLTrackElement
HTMLUListElement
HTMLUnknownElement
HTMLVideoElement
HashChangeEvent
Headers
History
HkdfParams
HmacImportParams
HmacKeyGenParams
I
IDBCursor
IDBCursorSync
IDBCursorWithValue
IDBDatabase
IDBDatabaseException
IDBDatabaseSync
IDBEnvironment
IDBEnvironmentSync
IDBFactory
IDBFactorySync
IDBIndex
IDBIndexSync
IDBKeyRange
IDBLocaleAwareKeyRange
IDBMutableFile
IDBObjectStore
IDBObjectStoreSync
IDBOpenDBRequest
IDBRequest
IDBTransaction
IDBTransactionSync
IDBVersionChangeEvent
IDBVersionChangeRequest
IIRFilterNode
IdleDeadline
ImageBitmap
ImageBitmapRenderingContext
ImageCapture
ImageData
Index
InputDeviceCapabilities
InputEvent
InstallEvent
InstallTrigger
IntersectionObserver
IntersectionObserverEntry
InterventionReportBody
K
L
LargestContentfulPaint
LayoutShift
LayoutShiftAttribution
LinearAccelerationSensor
LinkStyle
LocalFileSystem
LocalFileSystemSync
LocalMediaStream
Location
Lock
LockManager
LockedFile
M
MIDIAccess
MIDIConnectionEvent
MIDIInput
MIDIInputMap
MIDIMessageEvent
MIDIOutputMap
MSCandidateWindowHide
MSCandidateWindowShow
MSCandidateWindowUpdate
MSGestureEvent
MSGraphicsTrust
MSManipulationEvent
MSRangeCollection
MSSiteModeEvent
Magnetometer
MathMLElement
MediaCapabilities
MediaCapabilitiesInfo
MediaConfiguration
MediaDecodingConfiguration
MediaDeviceInfo
MediaDevices
MediaElementAudioSourceNode
MediaEncodingConfiguration
MediaError
MediaImage
MediaKeyMessageEvent
MediaKeySession
MediaKeyStatusMap
MediaKeySystemAccess
MediaKeySystemConfiguration
MediaKeys
MediaList
MediaMetadata
MediaPositionState
MediaQueryList
MediaQueryListEvent
MediaQueryListListener
MediaRecorder
MediaRecorderErrorEvent
MediaSession
MediaSessionActionDetails
MediaSettingsRange
MediaSource
MediaStream
MediaStreamAudioDestinationNode
MediaStreamAudioSourceNode
MediaStreamAudioSourceOptions
MediaStreamConstraints
MediaStreamEvent
MediaStreamTrack
MediaStreamTrackAudioSourceNode
MediaStreamTrackAudioSourceOptions
MediaStreamTrackEvent
MediaTrackConstraints
MediaTrackSettings
MediaTrackSupportedConstraints
MerchantValidationEvent
MessageChannel
MessageEvent
MessagePort
Metadata
MimeType
MimeTypeArray
MouseEvent
MouseScrollEvent
MouseWheelEvent
MutationEvent
MutationObserver
MutationObserverInit
MutationRecord
N
NDEFMessage
NDEFReader
NDEFReadingEvent
NDEFRecord
NDEFWriter
NameList
NamedNodeMap
NavigationPreloadManager
Navigator
NavigatorConcurrentHardware
NavigatorID
NavigatorLanguage
NavigatorOnLine
NavigatorPlugins
NavigatorStorage
NetworkInformation
Node
NodeFilter
NodeIterator
NodeList
NonDocumentTypeChildNode
Notation
Notification
NotificationAction
NotificationEvent
NotifyAudioAvailableEvent
O
OES_element_index_uint
OES_fbo_render_mipmap
OES_standard_derivatives
OES_texture_float
OES_texture_float_linear
OES_texture_half_float
OES_texture_half_float_linear
OES_vertex_array_object
OVR_multiview2
OfflineAudioCompletionEvent
OfflineAudioContext
OffscreenCanvas
OrientationSensor
OscillatorNode
OverconstrainedError
P
PageTransitionEvent
PaintWorklet
PannerNode
ParentNode
PasswordCredential
Path2D
PayerErrors
PaymentAddress
PaymentCurrencyAmount
PaymentDetailsBase
PaymentDetailsUpdate
PaymentItem
PaymentMethodChangeEvent
PaymentRequest
PaymentRequestEvent
PaymentRequestUpdateEvent
PaymentResponse
PaymentValidationErrors
Pbkdf2Params
Performance
PerformanceEntry
PerformanceEventTiming
PerformanceFrameTiming
PerformanceLongTaskTiming
PerformanceMark
PerformanceMeasure
PerformanceNavigation
PerformanceNavigationTiming
PerformanceObserver
PerformanceObserverEntryList
PerformancePaintTiming
PerformanceResourceTiming
PerformanceServerTiming
PerformanceTiming
PeriodicWave
PermissionStatus
Permissions
PhotoCapabilities
Plugin
PluginArray
Point
PointerEvent
PopStateEvent
PositionOptions
PositionSensorVRDevice
Presentation
PresentationAvailability
PresentationConnection
PresentationConnectionAvailableEvent
PresentationConnectionCloseEvent
PresentationConnectionList
PresentationReceiver
PresentationRequest
ProcessingInstruction
ProgressEvent
PromiseRejectionEvent
PublicKeyCredential
PublicKeyCredentialCreationOptions
PublicKeyCredentialRequestOptions
PushEvent
PushManager
PushMessageData
PushRegistrationManager
PushSubscription
R
RTCAnswerOptions
RTCCertificate
RTCConfiguration
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCIceCandidate
RTCIceCandidateInit
RTCIceCandidatePair
RTCIceCandidatePairStats
RTCIceCandidateStats
RTCIceCandidateType
RTCIceComponent
RTCIceCredentialType
RTCIceGathererState
RTCIceParameters
RTCIceProtocol
RTCIceRole
RTCIceServer
RTCIceTcpCandidateType
RTCIceTransport
RTCIceTransportState
RTCIdentityAssertion
RTCIdentityErrorEvent
RTCIdentityEvent
RTCInboundRtpStreamStats
RTCNetworkType
RTCOfferAnswerOptions
RTCOfferOptions
RTCOutboundRtpStreamStats
RTCPeerConnection
RTCPeerConnectionIceEvent
RTCRemoteOutboundRtpStreamStats
RTCRtpCodecParameters
RTCRtpContributingSource
RTCRtpEncodingParameters
RTCRtpReceiver
RTCRtpSendParameters
RTCRtpSender
RTCRtpStreamStats
RTCRtpSynchronizationSource
RTCRtpTransceiver
RTCRtpTransceiverDirection
RTCRtpTransceiverInit
RTCSctpTransport
RTCSessionDescription
RTCSessionDescriptionCallback
RTCStats
RTCStatsIceCandidatePairState
RTCStatsReport
RTCStatsType
RTCTrackEvent
RTCTrackEventInit
RadioNodeList
Range
ReadableByteStreamController
ReadableStream
ReadableStreamBYOBReader
ReadableStreamBYOBRequest
ReadableStreamDefaultController
ReadableStreamDefaultReader
RelativeOrientationSensor
RenderingContext
Report
ReportingObserver
ReportingObserverOptions
Request
RequestDestination
ResizeObserver
ResizeObserverEntry
Response
RsaHashedImportParams
RsaHashedKeyGenParams
RsaOaepParams
RsaPssParams
S
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
SVGFEColorMatrixElement
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
ScreenOrientation
ScriptProcessorNode
ScrollToOptions
SecurityPolicyViolationEvent
Selection
Sensor
SensorErrorEvent
ServiceWorker
ServiceWorkerContainer
ServiceWorkerGlobalScope
ServiceWorkerMessageEvent
ServiceWorkerRegistration
ServiceWorkerState
ShadowRoot
SharedWorker
SharedWorkerGlobalScope
Slottable
SourceBuffer
SourceBufferList
SpeechGrammar
SpeechGrammarList
SpeechRecognition
SpeechRecognitionAlternative
SpeechRecognitionError
SpeechRecognitionErrorEvent
SpeechRecognitionEvent
SpeechRecognitionResult
SpeechRecognitionResultList
SpeechSynthesis
SpeechSynthesisErrorEvent
SpeechSynthesisEvent
SpeechSynthesisUtterance
SpeechSynthesisVoice
StaticRange
StereoPannerNode
Storage
StorageEstimate
StorageEvent
StorageManager
StorageQuota
StylePropertyMap
StylePropertyMapReadOnly
StyleSheet
StyleSheetList
SubmitEvent
SubtleCrypto
SyncEvent
SyncManager
T
TaskAttributionTiming
Text
TextDecoder
TextEncoder
TextMetrics
TextRange
TextTrack
TextTrackCue
TextTrackList
TimeEvent
TimeRanges
Touch
TouchEvent
TouchList
TrackDefault
TrackDefaultList
TrackEvent
Transferable
TransformStream
TransitionEvent
TreeWalker
TypeInfo
U
UIEvent
ULongRange
URL
URLSearchParams
URLUtilsReadOnly
USB
USBAlternateInterface
USBConfiguration
USBDevice
USBEndpoint
USBInTransferResult
USBInterface
USBIsochronousInTransferPacket
USBIsochronousInTransferResult
USBIsochronousOutTransferPacket
USBIsochronousOutTransferResult
USBOutTransferResult
USVString
UserDataHandler
UserProximityEvent
V
VRDisplay
VRDisplayCapabilities
VRDisplayEvent
VREyeParameters
VRFieldOfView
VRFrameData
VRLayerInit
VRPose
VRStageParameters
VTTCue
VTTRegion
ValidityState
VideoConfiguration
VideoPlaybackQuality
VideoTrack
VideoTrackList
VisualViewport
W
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
WebGL2RenderingContext
WebGLActiveInfo
WebGLBuffer
WebGLContextEvent
WebGLFramebuffer
WebGLProgram
WebGLQuery
WebGLRenderbuffer
WebGLRenderingContext
WebGLSampler
WebGLShader
WebGLShaderPrecisionFormat
WebGLSync
WebGLTexture
WebGLTransformFeedback
WebGLUniformLocation
WebGLVertexArrayObject
WebKitCSSMatrix
WebSocket
WheelEvent
Window
WindowClient
WindowEventHandlers
WindowOrWorkerGlobalScope
Worker
WorkerGlobalScope
WorkerLocation
WorkerNavigator
Worklet
WritableStream
WritableStreamDefaultController
WritableStreamDefaultWriter
X
XDomainRequest
XMLDocument
XMLHttpRequest
XMLHttpRequestEventTarget
XMLHttpRequestResponseType
XMLSerializer
XPathEvaluator
XPathException
XPathExpression
XPathNSResolver
XPathResult
XRBoundedReferenceSpace
XREnvironmentBlendMode
XREye
XRFrame
XRFrameRequestCallback
XRHandedness
XRInputSource
XRInputSourceArray
XRInputSourceEvent
XRInputSourceEventInit
XRInputSourcesChangeEvent
XRInputSourcesChangeEventInit
XRPermissionDescriptor
XRPermissionStatus
XRPose
XRReferenceSpace
XRReferenceSpaceEvent
XRReferenceSpaceEventInit
XRReferenceSpaceType
XRRenderState
XRRenderStateInit
XRRigidTransform
XRSession
XRSessionEvent
XRSessionEventInit
XRSessionInit
XRSessionMode
XRSpace
XRSystem
XRTargetRayMode
XRView
XRViewerPose
XRViewport
XRVisibilityState
XRWebGLLayer
XRWebGLLayerInit
XSLTProcessor