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_arraysAbortControllerAbortSignalAbsoluteOrientationSensorAbstractRangeAbstractWorkerAccelerometerAddressErrorsAesCbcParamsAesCtrParamsAesGcmParamsAesKeyGenParamsAmbientLightSensorAnalyserNodeAnimationAnimationEffectAnimationEventAnimationPlaybackEventAnimationTimelineArrayBufferViewAttrAudioBufferAudioBufferSourceNodeAudioConfigurationAudioContextAudioContextLatencyCategoryAudioContextOptionsAudioDestinationNodeAudioListenerAudioNodeAudioNodeOptionsAudioParamAudioParamDescriptorAudioParamMapAudioProcessingEventAudioScheduledSourceNodeAudioTrackAudioTrackListAudioWorkletAudioWorkletGlobalScopeAudioWorkletNodeAudioWorkletNodeOptionsAudioWorkletProcessorAuthenticatorAssertionResponseAuthenticatorAttestationResponseAuthenticatorResponse
B
BaseAudioContextBasicCardRequestBasicCardResponseBatteryManagerBeforeInstallPromptEventBeforeUnloadEventBiquadFilterNodeBlobBlobBuilderBlobEventBluetoothBluetoothAdvertisingDataBluetoothCharacteristicPropertiesBluetoothDeviceBluetoothRemoteGATTCharacteristicBluetoothRemoteGATTDescriptorBluetoothRemoteGATTServerBluetoothRemoteGATTServiceBodyBroadcastChannelBudgetServiceBudgetStateBufferSourceByteLengthQueuingStrategyByteString
C
CDATASectionCSSCSSConditionRuleCSSCounterStyleRuleCSSGroupingRuleCSSImageValueCSSKeyframeRuleCSSKeyframesRuleCSSKeywordValueCSSMathProductCSSMathSumCSSMathValueCSSMediaRuleCSSNamespaceRuleCSSNumericValueCSSOMStringCSSPageRuleCSSPositionValueCSSPrimitiveValueCSSPseudoElementCSSRuleCSSRuleListCSSStyleDeclarationCSSStyleRuleCSSStyleSheetCSSStyleValueCSSSupportsRuleCSSUnitValueCSSUnparsedValueCSSValueCSSValueListCSSVariableReferenceValueCacheCacheStorageCanvasCaptureMediaStreamTrackCanvasGradientCanvasImageSourceCanvasPatternCanvasRenderingContext2DCaretPositionChannelMergerNodeChannelSplitterNodeCharacterDataChildNodeClientClientsClipboardClipboardEventClipboardItemCloseEventCommentCompositionEventConstantSourceNodeConstrainBooleanConstrainDOMStringConstrainDoubleConstrainULongConvolverNodeCountQueuingStrategyCrashReportBodyCredentialCredentialsContainerCryptoCryptoKeyCryptoKeyPairCustomElementRegistryCustomEvent
D
DOMConfigurationDOMErrorDOMExceptionDOMHighResTimeStampDOMImplementationDOMImplementationListDOMLocatorDOMMatrixDOMMatrixReadOnlyDOMObjectDOMParserDOMPointDOMPointInitDOMPointReadOnlyDOMQuadDOMRectDOMRectReadOnlyDOMStringDOMStringListDOMStringMapDOMTimeStampDOMTokenListDOMUserDataDataTransferDataTransferItemDataTransferItemListDedicatedWorkerGlobalScopeDelayNodeDeprecationReportBodyDeviceLightEventDeviceMotionEventDeviceMotionEventAccelerationDeviceMotionEventRotationRateDeviceOrientationEventDeviceProximityEventDirectoryEntrySyncDirectoryReaderSyncDisplayMediaStreamConstraintsDocumentDocumentFragmentDocumentOrShadowRootDocumentTimelineDocumentTouchDocumentTypeDoubleRangeDragEventDynamicsCompressorNode
E
EXT_blend_minmaxEXT_color_buffer_floatEXT_color_buffer_half_floatEXT_disjoint_timer_queryEXT_float_blendEXT_frag_depthEXT_sRGBEXT_shader_texture_lodEXT_texture_compression_bptcEXT_texture_compression_rgtcEXT_texture_filter_anisotropicEcKeyGenParamsEcKeyImportParamsEcdhKeyDeriveParamsEcdsaParamsEffectTimingElementElementCSSInlineStyleElementTraversalErrorEventEventEventListenerEventSourceEventTargetExtendableEventExtendableMessageEvent
F
FeaturePolicyFederatedCredentialFetchEventFileFileEntrySyncFileErrorFileExceptionFileListFileReaderFileReaderSyncFileRequestFileSystemFileSystemDirectoryEntryFileSystemDirectoryReaderFileSystemEntryFileSystemEntrySyncFileSystemFileEntryFileSystemFlagsFileSystemSyncFocusEventFontFaceFontFaceSetFontFaceSetLoadEventFormDataFormDataEntryValueFormDataEventFullscreenOptions
G
GainNodeGamepadGamepadButtonGamepadEventGamepadHapticActuatorGamepadPoseGeolocationGeolocationCoordinatesGeolocationPositionGeolocationPositionErrorGeometryUtilsGestureEventGlobalEventHandlersGyroscope
H
HMDVRDeviceHTMLAnchorElementHTMLAreaElementHTMLAudioElementHTMLBRElementHTMLBaseElementHTMLBaseFontElementHTMLBodyElementHTMLButtonElementHTMLCanvasElementHTMLCollectionHTMLContentElementHTMLDListElementHTMLDataElementHTMLDataListElementHTMLDetailsElementHTMLDialogElementHTMLDivElementHTMLDocumentHTMLElementHTMLEmbedElementHTMLFieldSetElementHTMLFontElementHTMLFormControlsCollectionHTMLFormElementHTMLFrameSetElementHTMLHRElementHTMLHeadElementHTMLHeadingElementHTMLHtmlElementHTMLHyperlinkElementUtilsHTMLIFrameElementHTMLImageElementHTMLInputElementHTMLIsIndexElementHTMLKeygenElementHTMLLIElementHTMLLabelElementHTMLLegendElementHTMLLinkElementHTMLMapElementHTMLMarqueeElementHTMLMediaElementHTMLMenuElementHTMLMenuItemElementHTMLMetaElementHTMLMeterElementHTMLModElementHTMLOListElementHTMLObjectElementHTMLOptGroupElementHTMLOptionElementHTMLOptionsCollectionHTMLOrForeignElementHTMLOutputElementHTMLParagraphElementHTMLParamElementHTMLPictureElementHTMLPreElementHTMLProgressElementHTMLQuoteElementHTMLScriptElementHTMLSelectElementHTMLShadowElementHTMLSlotElementHTMLSourceElementHTMLSpanElementHTMLStyleElementHTMLTableCaptionElementHTMLTableCellElementHTMLTableColElementHTMLTableElementHTMLTableRowElementHTMLTableSectionElementHTMLTemplateElementHTMLTextAreaElementHTMLTimeElementHTMLTitleElementHTMLTrackElementHTMLUListElementHTMLUnknownElementHTMLVideoElementHashChangeEventHeadersHistoryHkdfParamsHmacImportParamsHmacKeyGenParams
I
IDBCursorIDBCursorSyncIDBCursorWithValueIDBDatabaseIDBDatabaseExceptionIDBDatabaseSyncIDBEnvironmentIDBEnvironmentSyncIDBFactoryIDBFactorySyncIDBIndexIDBIndexSyncIDBKeyRangeIDBLocaleAwareKeyRangeIDBMutableFileIDBObjectStoreIDBObjectStoreSyncIDBOpenDBRequestIDBRequestIDBTransactionIDBTransactionSyncIDBVersionChangeEventIDBVersionChangeRequestIIRFilterNodeIdleDeadlineImageBitmapImageBitmapRenderingContextImageCaptureImageDataIndexInputDeviceCapabilitiesInputEventInstallEventInstallTriggerIntersectionObserverIntersectionObserverEntryInterventionReportBody
K
L
LargestContentfulPaintLayoutShiftLayoutShiftAttributionLinearAccelerationSensorLinkStyleLocalFileSystemLocalFileSystemSyncLocalMediaStreamLocationLockLockManagerLockedFile
M
MIDIAccessMIDIConnectionEventMIDIInputMIDIInputMapMIDIMessageEventMIDIOutputMapMSCandidateWindowHideMSCandidateWindowShowMSCandidateWindowUpdateMSGestureEventMSGraphicsTrustMSManipulationEventMSRangeCollectionMSSiteModeEventMagnetometerMathMLElementMediaCapabilitiesMediaCapabilitiesInfoMediaConfigurationMediaDecodingConfigurationMediaDeviceInfoMediaDevicesMediaElementAudioSourceNodeMediaEncodingConfigurationMediaErrorMediaImageMediaKeyMessageEventMediaKeySessionMediaKeyStatusMapMediaKeySystemAccessMediaKeySystemConfigurationMediaKeysMediaListMediaMetadataMediaPositionStateMediaQueryListMediaQueryListEventMediaQueryListListenerMediaRecorderMediaRecorderErrorEventMediaSessionMediaSessionActionDetailsMediaSettingsRangeMediaSourceMediaStreamMediaStreamAudioDestinationNodeMediaStreamAudioSourceNodeMediaStreamAudioSourceOptionsMediaStreamConstraintsMediaStreamEventMediaStreamTrackMediaStreamTrackAudioSourceNodeMediaStreamTrackAudioSourceOptionsMediaStreamTrackEventMediaTrackConstraintsMediaTrackSettingsMediaTrackSupportedConstraintsMerchantValidationEventMessageChannelMessageEventMessagePortMetadataMimeTypeMimeTypeArrayMouseEventMouseScrollEventMouseWheelEventMutationEventMutationObserverMutationObserverInitMutationRecord
N
NDEFMessageNDEFReaderNDEFReadingEventNDEFRecordNDEFWriterNameListNamedNodeMapNavigationPreloadManagerNavigatorNavigatorConcurrentHardwareNavigatorIDNavigatorLanguageNavigatorOnLineNavigatorPluginsNavigatorStorageNetworkInformationNodeNodeFilterNodeIteratorNodeListNonDocumentTypeChildNodeNotationNotificationNotificationActionNotificationEventNotifyAudioAvailableEvent
O
OES_element_index_uintOES_fbo_render_mipmapOES_standard_derivativesOES_texture_floatOES_texture_float_linearOES_texture_half_floatOES_texture_half_float_linearOES_vertex_array_objectOVR_multiview2OfflineAudioCompletionEventOfflineAudioContextOffscreenCanvasOrientationSensorOscillatorNodeOverconstrainedError
P
PageTransitionEventPaintWorkletPannerNodeParentNodePasswordCredentialPath2DPayerErrorsPaymentAddressPaymentCurrencyAmountPaymentDetailsBasePaymentDetailsUpdatePaymentItemPaymentMethodChangeEventPaymentRequestPaymentRequestEventPaymentRequestUpdateEventPaymentResponsePaymentValidationErrorsPbkdf2ParamsPerformancePerformanceEntryPerformanceEventTimingPerformanceFrameTimingPerformanceLongTaskTimingPerformanceMarkPerformanceMeasurePerformanceNavigationPerformanceNavigationTimingPerformanceObserverPerformanceObserverEntryListPerformancePaintTimingPerformanceResourceTimingPerformanceServerTimingPerformanceTimingPeriodicWavePermissionStatusPermissionsPhotoCapabilitiesPluginPluginArrayPointPointerEventPopStateEventPositionOptionsPositionSensorVRDevicePresentationPresentationAvailabilityPresentationConnectionPresentationConnectionAvailableEventPresentationConnectionCloseEventPresentationConnectionListPresentationReceiverPresentationRequestProcessingInstructionProgressEventPromiseRejectionEventPublicKeyCredentialPublicKeyCredentialCreationOptionsPublicKeyCredentialRequestOptionsPushEventPushManagerPushMessageDataPushRegistrationManagerPushSubscription
R
RTCAnswerOptionsRTCCertificateRTCConfigurationRTCDTMFSenderRTCDTMFToneChangeEventRTCDataChannelRTCDataChannelEventRTCDtlsTransportRTCIceCandidateRTCIceCandidateInitRTCIceCandidatePairRTCIceCandidatePairStatsRTCIceCandidateStatsRTCIceCandidateTypeRTCIceComponentRTCIceCredentialTypeRTCIceGathererStateRTCIceParametersRTCIceProtocolRTCIceRoleRTCIceServerRTCIceTcpCandidateTypeRTCIceTransportRTCIceTransportStateRTCIdentityAssertionRTCIdentityErrorEventRTCIdentityEventRTCInboundRtpStreamStatsRTCNetworkTypeRTCOfferAnswerOptionsRTCOfferOptionsRTCOutboundRtpStreamStatsRTCPeerConnectionRTCPeerConnectionIceEventRTCRemoteOutboundRtpStreamStatsRTCRtpCodecParametersRTCRtpContributingSourceRTCRtpEncodingParametersRTCRtpReceiverRTCRtpSendParametersRTCRtpSenderRTCRtpStreamStatsRTCRtpSynchronizationSourceRTCRtpTransceiverRTCRtpTransceiverDirectionRTCRtpTransceiverInitRTCSctpTransportRTCSessionDescriptionRTCSessionDescriptionCallbackRTCStatsRTCStatsIceCandidatePairStateRTCStatsReportRTCStatsTypeRTCTrackEventRTCTrackEventInitRadioNodeListRangeReadableByteStreamControllerReadableStreamReadableStreamBYOBReaderReadableStreamBYOBRequestReadableStreamDefaultControllerReadableStreamDefaultReaderRelativeOrientationSensorRenderingContextReportReportingObserverReportingObserverOptionsRequestRequestDestinationResizeObserverResizeObserverEntryResponseRsaHashedImportParamsRsaHashedKeyGenParamsRsaOaepParamsRsaPssParams
S
SVGAElementSVGAltGlyphDefElementSVGAltGlyphElementSVGAltGlyphItemElementSVGAngleSVGAnimateColorElementSVGAnimateElementSVGAnimateMotionElementSVGAnimateTransformElementSVGAnimatedAngleSVGAnimatedBooleanSVGAnimatedEnumerationSVGAnimatedIntegerSVGAnimatedLengthSVGAnimatedLengthListSVGAnimatedNumberSVGAnimatedNumberListSVGAnimatedPointsSVGAnimatedPreserveAspectRatioSVGAnimatedRectSVGAnimatedStringSVGAnimatedTransformListSVGAnimationElementSVGCircleElementSVGClipPathElementSVGColorProfileElementSVGComponentTransferFunctionElementSVGCursorElementSVGDefsElementSVGDescElementSVGElementSVGEllipseElementSVGEventSVGExternalResourcesRequiredSVGFEBlendElementSVGFEColorMatrixElementSVGFEComponentTransferElementSVGFECompositeElementSVGFEConvolveMatrixElementSVGFEDiffuseLightingElementSVGFEDisplacementMapElementSVGFEDistantLightElementSVGFEDropShadowElementSVGFEFloodElementSVGFEFuncAElementSVGFEFuncBElementSVGFEFuncGElementSVGFEFuncRElementSVGFEGaussianBlurElementSVGFEImageElementSVGFEMergeElementSVGFEMergeNodeElementSVGFEMorphologyElementSVGFEOffsetElementSVGFEPointLightElementSVGFESpecularLightingElementSVGFESpotLightElementSVGFETileElementSVGFETurbulenceElementSVGFilterElementSVGFilterPrimitiveStandardAttributesSVGFontElementSVGFontFaceElementSVGFontFaceFormatElementSVGFontFaceNameElementSVGFontFaceSrcElementSVGFontFaceUriElementSVGForeignObjectElementSVGGElementSVGGeometryElementSVGGlyphElementSVGGlyphRefElementSVGGradientElementSVGGraphicsElementSVGHKernElementSVGImageElementSVGLengthSVGLengthListSVGLineElementSVGLinearGradientElementSVGMPathElementSVGMaskElementSVGMatrixSVGMeshElementSVGMetadataElementSVGMissingGlyphElementSVGNumberSVGNumberListSVGPathElementSVGPatternElementSVGPointSVGPolygonElementSVGPolylineElementSVGPreserveAspectRatioSVGRadialGradientElementSVGRectSVGRectElementSVGRenderingIntentSVGSVGElementSVGScriptElementSVGSetElementSVGSolidcolorElementSVGStopElementSVGStringListSVGStylableSVGStyleElementSVGSwitchElementSVGSymbolElementSVGTRefElementSVGTSpanElementSVGTestsSVGTextContentElementSVGTextElementSVGTextPathElementSVGTextPositioningElementSVGTitleElementSVGTransformSVGTransformListSVGTransformableSVGURIReferenceSVGUnitTypesSVGUseElementSVGVKernElementSVGViewElementSVGZoomAndPanScreenScreenOrientationScriptProcessorNodeScrollToOptionsSecurityPolicyViolationEventSelectionSensorSensorErrorEventServiceWorkerServiceWorkerContainerServiceWorkerGlobalScopeServiceWorkerMessageEventServiceWorkerRegistrationServiceWorkerStateShadowRootSharedWorkerSharedWorkerGlobalScopeSlottableSourceBufferSourceBufferListSpeechGrammarSpeechGrammarListSpeechRecognitionSpeechRecognitionAlternativeSpeechRecognitionErrorSpeechRecognitionErrorEventSpeechRecognitionEventSpeechRecognitionResultSpeechRecognitionResultListSpeechSynthesisSpeechSynthesisErrorEventSpeechSynthesisEventSpeechSynthesisUtteranceSpeechSynthesisVoiceStaticRangeStereoPannerNodeStorageStorageEstimateStorageEventStorageManagerStorageQuotaStylePropertyMapStylePropertyMapReadOnlyStyleSheetStyleSheetListSubmitEventSubtleCryptoSyncEventSyncManager
T
TaskAttributionTimingTextTextDecoderTextEncoderTextMetricsTextRangeTextTrackTextTrackCueTextTrackListTimeEventTimeRangesTouchTouchEventTouchListTrackDefaultTrackDefaultListTrackEventTransferableTransformStreamTransitionEventTreeWalkerTypeInfo
U
UIEventULongRangeURLURLSearchParamsURLUtilsReadOnlyUSBUSBAlternateInterfaceUSBConfigurationUSBDeviceUSBEndpointUSBInTransferResultUSBInterfaceUSBIsochronousInTransferPacketUSBIsochronousInTransferResultUSBIsochronousOutTransferPacketUSBIsochronousOutTransferResultUSBOutTransferResultUSVStringUserDataHandlerUserProximityEvent
V
VRDisplayVRDisplayCapabilitiesVRDisplayEventVREyeParametersVRFieldOfViewVRFrameDataVRLayerInitVRPoseVRStageParametersVTTCueVTTRegionValidityStateVideoConfigurationVideoPlaybackQualityVideoTrackVideoTrackListVisualViewport
W
WEBGL_color_buffer_floatWEBGL_compressed_texture_astcWEBGL_compressed_texture_atcWEBGL_compressed_texture_etcWEBGL_compressed_texture_etc1WEBGL_compressed_texture_pvrtcWEBGL_compressed_texture_s3tcWEBGL_compressed_texture_s3tc_srgbWEBGL_debug_renderer_infoWEBGL_debug_shadersWEBGL_depth_textureWEBGL_draw_buffersWEBGL_lose_contextWaveShaperNodeWebGL2RenderingContextWebGLActiveInfoWebGLBufferWebGLContextEventWebGLFramebufferWebGLProgramWebGLQueryWebGLRenderbufferWebGLRenderingContextWebGLSamplerWebGLShaderWebGLShaderPrecisionFormatWebGLSyncWebGLTextureWebGLTransformFeedbackWebGLUniformLocationWebGLVertexArrayObjectWebKitCSSMatrixWebSocketWheelEventWindowWindowClientWindowEventHandlersWindowOrWorkerGlobalScopeWorkerWorkerGlobalScopeWorkerLocationWorkerNavigatorWorkletWritableStreamWritableStreamDefaultControllerWritableStreamDefaultWriter
X
XDomainRequestXMLDocumentXMLHttpRequestXMLHttpRequestEventTargetXMLHttpRequestResponseTypeXMLSerializerXPathEvaluatorXPathExceptionXPathExpressionXPathNSResolverXPathResultXRBoundedReferenceSpaceXREnvironmentBlendModeXREyeXRFrameXRFrameRequestCallbackXRHandednessXRInputSourceXRInputSourceArrayXRInputSourceEventXRInputSourceEventInitXRInputSourcesChangeEventXRInputSourcesChangeEventInitXRPermissionDescriptorXRPermissionStatusXRPoseXRReferenceSpaceXRReferenceSpaceEventXRReferenceSpaceEventInitXRReferenceSpaceTypeXRRenderStateXRRenderStateInitXRRigidTransformXRSessionXRSessionEventXRSessionEventInitXRSessionInitXRSessionModeXRSpaceXRSystemXRTargetRayModeXRViewXRViewerPoseXRViewportXRVisibilityStateXRWebGLLayerXRWebGLLayerInitXSLTProcessor