在使用 JavaScript 编写 Web 代码时,有许多 Web API 可供调用。下面是开发Web应用程序或网站时可能使用的所有API和接口(对象类型)的列表。
Web API主要用于JavaScript,但也可能有例外。
规范
这是一个所有可用API的列表。
ABC
- CSS Counter Styles
- CSS Font Loading API
- CSSOM
- Canvas API
- Channel Messaging API
- Console API
- Credential Management API
- Media Capabilities API
- Media Capture and Streams
- Media Session API
- Media Source Extensions
- MediaStream Recording
- Page Visibility API
- Payment Request API
- Performance API
- Performance Timeline API
- Permissions API
- Pointer Events
- Pointer Lock API
- Proximity Events
- Push API
接口
这是一个所有接口(即对象类型)的列表。
A
ANGLE_instanced_arraysAbortControllerAbortSignalAbsoluteOrientationSensorAbstractRangeAbstractWorkerAccelerometerAddressErrorsAesCbcParamsAesCtrParamsAesGcmParamsAesKeyGenParamsAmbientLightSensorAnalyserNodeAnimationAnimationEffectAnimationEventAnimationPlaybackEventAnimationTimelineArrayBufferViewAttrAudioBufferAudioBufferSourceNodeAudioConfigurationAudioContextAudioContextLatencyCategoryAudioContextOptionsAudioDestinationNodeAudioListenerAudioNodeAudioNodeOptionsAudioParamAudioParamDescriptorAudioParamMapAudioProcessingEventAudioScheduledSourceNodeAudioTrackAudioTrackListAudioWorkletAudioWorkletGlobalScopeAudioWorkletNodeAudioWorkletNodeOptionsAudioWorkletProcessorAuthenticatorAssertionResponseAuthenticatorAttestationResponseAuthenticatorResponse
BaseAudioContextBasicCardRequestBasicCardResponseBatteryManagerBeforeInstallPromptEventBeforeUnloadEventBiquadFilterNodeBlobBlobBuilderBlobEventBluetoothBluetoothAdvertisingDataBluetoothCharacteristicPropertiesBluetoothDeviceBluetoothRemoteGATTCharacteristicBluetoothRemoteGATTDescriptorBluetoothRemoteGATTServerBluetoothRemoteGATTServiceBodyBroadcastChannelBudgetServiceBudgetStateBufferSourceByteLengthQueuingStrategyByteString
CDATASectionCSSCSSConditionRuleCSSCounterStyleRuleCSSGroupingRuleCSSImageValueCSSKeyframeRuleCSSKeyframesRuleCSSKeywordValueCSSMathProductCSSMathSumCSSMathValueCSSMediaRuleCSSNamespaceRuleCSSNumericValueCSSOMStringCSSPageRuleCSSPositionValueCSSPrimitiveValueCSSPseudoElementCSSRuleCSSRuleListCSSStyleDeclarationCSSStyleRuleCSSStyleSheetCSSStyleValueCSSSupportsRuleCSSUnitValueCSSUnparsedValueCSSValueCSSValueListCSSVariableReferenceValueCacheCacheStorageCanvasCaptureMediaStreamTrackCanvasGradientCanvasImageSourceCanvasPatternCanvasRenderingContext2DCaretPositionChannelMergerNodeChannelSplitterNodeCharacterDataChildNodeClientClientsClipboardClipboardEventClipboardItemCloseEventCommentCompositionEventConstantSourceNodeConstrainBooleanConstrainDOMStringConstrainDoubleConstrainULongConvolverNodeCountQueuingStrategyCrashReportBodyCredentialCredentialsContainerCryptoCryptoKeyCryptoKeyPairCustomElementRegistryCustomEvent
DOMConfigurationDOMErrorDOMExceptionDOMHighResTimeStampDOMImplementationDOMImplementationListDOMLocatorDOMMatrixDOMMatrixReadOnlyDOMObjectDOMParserDOMPointDOMPointInitDOMPointReadOnlyDOMQuadDOMRectDOMRectReadOnlyDOMStringDOMStringListDOMStringMapDOMTimeStampDOMTokenListDOMUserDataDataTransferDataTransferItemDataTransferItemListDedicatedWorkerGlobalScopeDelayNodeDeprecationReportBodyDeviceLightEventDeviceMotionEventDeviceMotionEventAccelerationDeviceMotionEventRotationRateDeviceOrientationEventDeviceProximityEventDirectoryEntrySyncDirectoryReaderSyncDisplayMediaStreamConstraintsDocumentDocumentFragmentDocumentOrShadowRootDocumentTimelineDocumentTouchDocumentTypeDoubleRangeDragEventDynamicsCompressorNode
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
FeaturePolicyFederatedCredentialFetchEventFileFileEntrySyncFileErrorFileExceptionFileListFileReaderFileReaderSyncFileRequestFileSystemFileSystemDirectoryEntryFileSystemDirectoryReaderFileSystemEntryFileSystemEntrySyncFileSystemFileEntryFileSystemFlagsFileSystemSyncFocusEventFontFaceFontFaceSetFontFaceSetLoadEventFormDataFormDataEntryValueFormDataEventFullscreenOptions
GainNodeGamepadGamepadButtonGamepadEventGamepadHapticActuatorGamepadPoseGeolocationGeolocationCoordinatesGeolocationPositionGeolocationPositionErrorGeometryUtilsGestureEventGlobalEventHandlersGyroscope
HMDVRDeviceHTMLAnchorElementHTMLAreaElementHTMLAudioElementHTMLBRElementHTMLBaseElementHTMLBaseFontElementHTMLBodyElementHTMLButtonElementHTMLCanvasElementHTMLCollectionHTMLContentElementHTMLDListElementHTMLDataElementHTMLDataListElementHTMLDetailsElementHTMLDialogElementHTMLDivElementHTMLDocumentHTMLElementHTMLEmbedElementHTMLFieldSetElementHTMLFontElementHTMLFormControlsCollectionHTMLFormElementHTMLFrameSetElementHTMLHRElementHTMLHeadElementHTMLHeadingElementHTMLHtmlElementHTMLHyperlinkElementUtilsHTMLIFrameElementHTMLImageElementHTMLInputElementHTMLIsIndexElementHTMLKeygenElementHTMLLIElementHTMLLabelElementHTMLLegendElementHTMLLinkElementHTMLMapElementHTMLMarqueeElementHTMLMediaElementHTMLMenuElementHTMLMenuItemElementHTMLMetaElementHTMLMeterElementHTMLModElementHTMLOListElementHTMLObjectElementHTMLOptGroupElementHTMLOptionElementHTMLOptionsCollectionHTMLOrForeignElementHTMLOutputElementHTMLParagraphElementHTMLParamElementHTMLPictureElementHTMLPreElementHTMLProgressElementHTMLQuoteElementHTMLScriptElementHTMLSelectElementHTMLShadowElementHTMLSlotElementHTMLSourceElementHTMLSpanElementHTMLStyleElementHTMLTableCaptionElementHTMLTableCellElementHTMLTableColElementHTMLTableElementHTMLTableRowElementHTMLTableSectionElementHTMLTemplateElementHTMLTextAreaElementHTMLTimeElementHTMLTitleElementHTMLTrackElementHTMLUListElementHTMLUnknownElementHTMLVideoElementHashChangeEventHeadersHistoryHkdfParamsHmacImportParamsHmacKeyGenParams
IDBCursorIDBCursorSyncIDBCursorWithValueIDBDatabaseIDBDatabaseExceptionIDBDatabaseSyncIDBEnvironmentIDBEnvironmentSyncIDBFactoryIDBFactorySyncIDBIndexIDBIndexSyncIDBKeyRangeIDBLocaleAwareKeyRangeIDBMutableFileIDBObjectStoreIDBObjectStoreSyncIDBOpenDBRequestIDBRequestIDBTransactionIDBTransactionSyncIDBVersionChangeEventIDBVersionChangeRequestIIRFilterNodeIdleDeadlineImageBitmapImageBitmapRenderingContextImageCaptureImageDataIndexInputDeviceCapabilitiesInputEventInstallEventInstallTriggerIntersectionObserverIntersectionObserverEntryInterventionReportBody
LargestContentfulPaintLayoutShiftLayoutShiftAttributionLinearAccelerationSensorLinkStyleLocalFileSystemLocalFileSystemSyncLocalMediaStreamLocationLockLockManagerLockedFile
MIDIAccessMIDIConnectionEventMIDIInputMIDIInputMapMIDIMessageEventMIDIOutputMapMSCandidateWindowHideMSCandidateWindowShowMSCandidateWindowUpdateMSGestureEventMSGraphicsTrustMSManipulationEventMSRangeCollectionMSSiteModeEventMagnetometerMathMLElementMediaCapabilitiesMediaCapabilitiesInfoMediaConfigurationMediaDecodingConfigurationMediaDeviceInfoMediaDevicesMediaElementAudioSourceNodeMediaEncodingConfigurationMediaErrorMediaImageMediaKeyMessageEventMediaKeySessionMediaKeyStatusMapMediaKeySystemAccessMediaKeySystemConfigurationMediaKeysMediaListMediaMetadataMediaPositionStateMediaQueryListMediaQueryListEventMediaQueryListListenerMediaRecorderMediaRecorderErrorEventMediaSessionMediaSessionActionDetailsMediaSettingsRangeMediaSourceMediaStreamMediaStreamAudioDestinationNodeMediaStreamAudioSourceNodeMediaStreamAudioSourceOptionsMediaStreamConstraintsMediaStreamEventMediaStreamTrackMediaStreamTrackAudioSourceNodeMediaStreamTrackAudioSourceOptionsMediaStreamTrackEventMediaTrackConstraintsMediaTrackSettingsMediaTrackSupportedConstraintsMerchantValidationEventMessageChannelMessageEventMessagePortMetadataMimeTypeMimeTypeArrayMouseEventMouseScrollEventMouseWheelEventMutationEventMutationObserverMutationObserverInitMutationRecord
NDEFMessageNDEFReaderNDEFReadingEventNDEFRecordNDEFWriterNameListNamedNodeMapNavigationPreloadManagerNavigatorNavigatorConcurrentHardwareNavigatorIDNavigatorLanguageNavigatorOnLineNavigatorPluginsNavigatorStorageNetworkInformationNodeNodeFilterNodeIteratorNodeListNonDocumentTypeChildNodeNotationNotificationNotificationActionNotificationEventNotifyAudioAvailableEvent
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
PageTransitionEventPaintWorkletPannerNodeParentNodePasswordCredentialPath2DPayerErrorsPaymentAddressPaymentCurrencyAmountPaymentDetailsBasePaymentDetailsUpdatePaymentItemPaymentMethodChangeEventPaymentRequestPaymentRequestEventPaymentRequestUpdateEventPaymentResponsePaymentValidationErrorsPbkdf2ParamsPerformancePerformanceEntryPerformanceEventTimingPerformanceFrameTimingPerformanceLongTaskTimingPerformanceMarkPerformanceMeasurePerformanceNavigationPerformanceNavigationTimingPerformanceObserverPerformanceObserverEntryListPerformancePaintTimingPerformanceResourceTimingPerformanceServerTimingPerformanceTimingPeriodicWavePermissionStatusPermissionsPhotoCapabilitiesPluginPluginArrayPointPointerEventPopStateEventPositionOptionsPositionSensorVRDevicePresentationPresentationAvailabilityPresentationConnectionPresentationConnectionAvailableEventPresentationConnectionCloseEventPresentationConnectionListPresentationReceiverPresentationRequestProcessingInstructionProgressEventPromiseRejectionEventPublicKeyCredentialPublicKeyCredentialCreationOptionsPublicKeyCredentialRequestOptionsPushEventPushManagerPushMessageDataPushRegistrationManagerPushSubscription
RTCAnswerOptionsRTCCertificateRTCConfigurationRTCDTMFSenderRTCDTMFToneChangeEventRTCDataChannelRTCDataChannelEventRTCDtlsTransportRTCIceCandidateRTCIceCandidateInitRTCIceCandidatePairRTCIceCandidatePairStatsRTCIceCandidateStatsRTCIceCandidateTypeRTCIceComponentRTCIceCredentialTypeRTCIceGathererStateRTCIceParametersRTCIceProtocolRTCIceRoleRTCIceServerRTCIceTcpCandidateTypeRTCIceTransportRTCIceTransportStateRTCIdentityAssertionRTCIdentityErrorEventRTCIdentityEventRTCInboundRtpStreamStatsRTCNetworkTypeRTCOfferAnswerOptionsRTCOfferOptionsRTCOutboundRtpStreamStatsRTCPeerConnectionRTCPeerConnectionIceEventRTCRemoteOutboundRtpStreamStatsRTCRtpCodecParametersRTCRtpContributingSourceRTCRtpEncodingParametersRTCRtpReceiverRTCRtpSendParametersRTCRtpSenderRTCRtpStreamStatsRTCRtpSynchronizationSourceRTCRtpTransceiverRTCRtpTransceiverDirectionRTCRtpTransceiverInitRTCSctpTransportRTCSessionDescriptionRTCSessionDescriptionCallbackRTCStatsRTCStatsIceCandidatePairStateRTCStatsReportRTCStatsTypeRTCTrackEventRTCTrackEventInitRadioNodeListRangeReadableByteStreamControllerReadableStreamReadableStreamBYOBReaderReadableStreamBYOBRequestReadableStreamDefaultControllerReadableStreamDefaultReaderRelativeOrientationSensorRenderingContextReportReportingObserverReportingObserverOptionsRequestRequestDestinationResizeObserverResizeObserverEntryResponseRsaHashedImportParamsRsaHashedKeyGenParamsRsaOaepParamsRsaPssParams
SVGAElementSVGAltGlyphDefElementSVGAltGlyphElementSVGAltGlyphItemElementSVGAngleSVGAnimateColorElementSVGAnimateElementSVGAnimateMotionElementSVGAnimateTransformElementSVGAnimatedAngleSVGAnimatedBooleanSVGAnimatedEnumerationSVGAnimatedIntegerSVGAnimatedLengthSVGAnimatedLengthListSVGAnimatedNumberSVGAnimatedNumberListSVGAnimatedPointsSVGAnimatedPreserveAspectRatioSVGAnimatedRectSVGAnimatedStringSVGAnimatedTransformListSVGAnimationElementSVGCircleElementSVGClipPathElementSVGColorProfileElementSVGComponentTransferFunctionElementSVGCursorElementSVGDefsElementSVGDescElementSVGElementSVGEllipseElementSVGEventSVGExternalResourcesRequiredSVGFEBlendElementSVGFEColorMatrixElementSVGFEComponentTransferElementSVGFECompositeElementSVGFEConvolveMatrixElementSVGFEDiffuseLightingElementSVGFEDisplacementMapElementSVGFEDistantLightElementSVGFEDropShadowElementSVGFEFloodElementSVGFEFuncAElementSVGFEFuncBElementSVGFEFuncGElementSVGFEFuncRElementSVGFEGaussianBlurElementSVGFEImageElementSVGFEMergeElementSVGFEMergeNodeElementSVGFEMorphologyElementSVGFEOffsetElementSVGFEPointLightElementSVGFESpecularLightingElementSVGFESpotLightElementSVGFETileElementSVGFETurbulenceElementSVGFilterElementSVGFilterPrimitiveStandardAttributesSVGFontElementSVGFontFaceElementSVGFontFaceFormatElementSVGFontFaceNameElementSVGFontFaceSrcElementSVGFontFaceUriElementSVGForeignObjectElementSVGGElementSVGGeometryElementSVGGlyphElementSVGGlyphRefElementSVGGradientElementSVGGraphicsElementSVGHKernElementSVGImageElementSVGLengthSVGLengthListSVGLineElementSVGLinearGradientElementSVGMPathElementSVGMaskElementSVGMatrixSVGMeshElementSVGMetadataElementSVGMissingGlyphElementSVGNumberSVGNumberListSVGPathElementSVGPatternElementSVGPointSVGPolygonElementSVGPolylineElementSVGPreserveAspectRatioSVGRadialGradientElementSVGRectSVGRectElementSVGRenderingIntentSVGSVGElementSVGScriptElementSVGSetElementSVGSolidcolorElementSVGStopElementSVGStringListSVGStylableSVGStyleElementSVGSwitchElementSVGSymbolElementSVGTRefElementSVGTSpanElementSVGTestsSVGTextContentElementSVGTextElementSVGTextPathElementSVGTextPositioningElementSVGTitleElementSVGTransformSVGTransformListSVGTransformableSVGURIReferenceSVGUnitTypesSVGUseElementSVGVKernElementSVGViewElementSVGZoomAndPanScreenScreenOrientationScriptProcessorNodeScrollToOptionsSecurityPolicyViolationEventSelectionSensorSensorErrorEventServiceWorkerServiceWorkerContainerServiceWorkerGlobalScopeServiceWorkerMessageEventServiceWorkerRegistrationServiceWorkerStateShadowRootSharedWorkerSharedWorkerGlobalScopeSlottableSourceBufferSourceBufferListSpeechGrammarSpeechGrammarListSpeechRecognitionSpeechRecognitionAlternativeSpeechRecognitionErrorSpeechRecognitionErrorEventSpeechRecognitionEventSpeechRecognitionResultSpeechRecognitionResultListSpeechSynthesisSpeechSynthesisErrorEventSpeechSynthesisEventSpeechSynthesisUtteranceSpeechSynthesisVoiceStaticRangeStereoPannerNodeStorageStorageEstimateStorageEventStorageManagerStorageQuotaStylePropertyMapStylePropertyMapReadOnlyStyleSheetStyleSheetListSubmitEventSubtleCryptoSyncEventSyncManager
TaskAttributionTimingTextTextDecoderTextEncoderTextMetricsTextRangeTextTrackTextTrackCueTextTrackListTimeEventTimeRangesTouchTouchEventTouchListTrackDefaultTrackDefaultListTrackEventTransferableTransformStreamTransitionEventTreeWalkerTypeInfo
UIEventULongRangeURLURLSearchParamsURLUtilsReadOnlyUSBUSBAlternateInterfaceUSBConfigurationUSBDeviceUSBEndpointUSBInTransferResultUSBInterfaceUSBIsochronousInTransferPacketUSBIsochronousInTransferResultUSBIsochronousOutTransferPacketUSBIsochronousOutTransferResultUSBOutTransferResultUSVStringUserDataHandlerUserProximityEvent
VRDisplayVRDisplayCapabilitiesVRDisplayEventVREyeParametersVRFieldOfViewVRFrameDataVRLayerInitVRPoseVRStageParametersVTTCueVTTRegionValidityStateVideoConfigurationVideoPlaybackQualityVideoTrackVideoTrackListVisualViewport
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
XDomainRequestXMLDocumentXMLHttpRequestXMLHttpRequestEventTargetXMLHttpRequestResponseTypeXMLSerializerXPathEvaluatorXPathExceptionXPathExpressionXPathNSResolverXPathResultXRBoundedReferenceSpaceXREnvironmentBlendModeXREyeXRFrameXRFrameRequestCallbackXRHandednessXRInputSourceXRInputSourceArrayXRInputSourceEventXRInputSourceEventInitXRInputSourcesChangeEventXRInputSourcesChangeEventInitXRPermissionDescriptorXRPermissionStatusXRPoseXRReferenceSpaceXRReferenceSpaceEventXRReferenceSpaceEventInitXRReferenceSpaceTypeXRRenderStateXRRenderStateInitXRRigidTransformXRSessionXRSessionEventXRSessionEventInitXRSessionInitXRSessionModeXRSpaceXRSystemXRTargetRayModeXRViewXRViewerPoseXRViewportXRVisibilityStateXRWebGLLayerXRWebGLLayerInitXSLTProcessor