在使用 JavaScript 编写 Web 代码时,有许多 API 可供调用。以下是所有接口(即对象类型)的列表,你可以在开发网站或 Web 应用程序时使用它们。
规范
A
- Alarm API
- Ambient Light Events
- App Cache
- Application Compatibility Layer
- Apps
- Archive API
- Audio Channels API
- Background Tasks
- Battery API
- Beacon
- Bluetooth API
- Bluetooth API (Firefox OS)
- Broadcast Channel API
- Browser API
- CSS Counter Styles
- CSS Font Loading API
- CSSOM
- CSSOM View
- Camera API
- Canvas API
- Channel Messaging API
- Clipboard API
- Console API
- Contacts API
- Credential Management API
- DOM
- DOM (Non-standard)
- DOM Events
- Data Store API
- Device Orientation Events
- Device Storage API
- Directory Upload API
- Download API
- Identity
- Idle API
- Image Capture API
- IndexedDB
- Input Port API
- Inter-App Connection API
- Intersection Observer API
- MSISDN Verification API
- Media Capabilities API
- Media Capture and Streams
- Media Session API
- Media Source Extensions
- MediaStream Recording
- Mobile Connection API
- Mobile Messaging API
- Mozilla Payment API
- Page Visibility API
- Payment Request API
- Performance API
- Performance Timeline API
- Permissions API
- Permissions API (Firefox OS)
- Pointer Events
- Pointer Lock API
- Power Management API
- Presentation API
- Proximity Events
- Push API
- SVG
- Screen Capture API
- Screen Orientation API
- Selection API
- Server Sent Events
- Service Workers API
- Settings API
- Simple Push API
- Social API
- Speaker Manager API
- Storage
- Streams
- System Update API
- Wake Lock API
- Web Activities
- Web Animations
- Web Audio API
- Web Authentication API
- Web Components
- Web Crypto API
- Web MIDI API
- Web Manifest
- Web Notifications
- Web Speech API
- Web Storage API
- Web Telephony API
- Web Workers API
- WebGL
- WebRTC
- WebVR API
- WebVTT
- Websockets API
- WiFi Information API
- WiFi P2P API
- WiFi Tethering API
接口
A
ANGLE_instanced_arraysAbortControllerAbortSignalAbsoluteOrientationSensorAbstractWorkerAccelerometerAddressErrorsAesCbcParamsAesCtrParamsAesGcmParamsAesKeyGenParamsAmbientLightSensorAnalyserNodeAnimationAnimationEffectAnimationEventAnimationPlaybackEventAnimationTimelineArrayBufferViewAttrAudioBufferAudioBufferSourceNodeAudioConfigurationAudioContextAudioContextLatencyCategoryAudioContextOptionsAudioDestinationNodeAudioListenerAudioNodeAudioNodeOptionsAudioParamAudioParamMapAudioProcessingEventAudioScheduledSourceNodeAudioTrackAudioTrackListAuthenticatorAssertionResponseAuthenticatorAttestationResponseAuthenticatorResponse
BaseAudioContextBasicCardRequestBasicCardResponseBatteryManagerBeforeInstallPromptEventBeforeUnloadEventBiquadFilterNodeBlobBlobBuilderBlobEventBluetoothBluetoothAdvertisingDataBluetoothCharacteristicPropertiesBluetoothDeviceBluetoothRemoteGATTCharacteristicBluetoothRemoteGATTDescriptorBluetoothRemoteGATTServerBluetoothRemoteGATTServiceBodyBroadcastChannelBudgetServiceBudgetStateBufferSourceByteLengthQueuingStrategyByteString
CDATASectionCSSCSSConditionRuleCSSCounterStyleRuleCSSGroupingRuleCSSImageValueCSSKeyframeRuleCSSKeyframesRuleCSSKeywordValueCSSMatrixCSSMediaRuleCSSNamespaceRuleCSSOMStringCSSPageRuleCSSPositionValueCSSPrimitiveValueCSSRuleCSSRuleListCSSStyleDeclarationCSSStyleRuleCSSStyleSheetCSSStyleValueCSSSupportsRuleCSSUnparsedValueCSSValueCSSValueListCSSVariableReferenceValueCacheCacheStorageCanvasCaptureMediaStreamTrackCanvasGradientCanvasImageSourceCanvasPatternCanvasRenderingContext2DCaretPositionChannelMergerNodeChannelSplitterNodeCharacterDataChildNodeClientClientsClipboardClipboardEventCloseEventCommentCompositionEventConsoleConstantSourceNodeConstrainBooleanConstrainDOMStringConstrainDoubleConstrainLongConvolverNodeCoordinatesCountQueuingStrategyCrashReportBodyCredentialCredentialsContainerCryptoCryptoKeyCryptoKeyPairCustomElementRegistryCustomEvent
DOMConfigurationDOMErrorDOMExceptionDOMHighResTimeStampDOMImplementationDOMImplementationListDOMLocatorDOMMatrixDOMMatrixReadOnlyDOMObjectDOMParserDOMPointDOMPointInitDOMPointReadOnlyDOMQuadDOMRectDOMRectReadOnlyDOMStringDOMStringListDOMStringMapDOMTimeStampDOMTokenListDOMUserDataDataTransferDataTransferItemDataTransferItemListDedicatedWorkerGlobalScopeDelayNodeDeprecationReportBodyDeviceAccelerationDeviceLightEventDeviceMotionEventDeviceOrientationEventDeviceProximityEventDeviceRotationRateDirectoryEntrySyncDirectoryReaderSyncDisplayMediaStreamConstraintsDocumentDocumentFragmentDocumentOrShadowRootDocumentTimelineDocumentTouchDocumentTypeDoubleRangeDragEventDynamicsCompressorNode
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_anisotropicEcKeyGenParamsEcKeyImportParamsEcdhKeyDeriveParamsEcdsaParamsEffectTimingElementElementTraversalErrorEventEventEventListenerEventSourceEventTargetExtendableEventExtendableMessageEvent
FederatedCredentialFetchEventFileFileEntrySyncFileErrorFileExceptionFileListFileReaderFileReaderSyncFileRequestFileSystemFileSystemDirectoryEntryFileSystemDirectoryReaderFileSystemEntryFileSystemEntrySyncFileSystemFileEntryFileSystemFlagsFileSystemSyncFocusEventFontFaceFontFaceSetFontFaceSetLoadEventFormDataFullscreenOptions
GainNodeGamepadGamepadButtonGamepadEventGamepadHapticActuatorGamepadPoseGeolocationGeometryUtilsGestureEventGlobalEventHandlersGyroscope
HMDVRDeviceHTMLAnchorElementHTMLAreaElementHTMLAudioElementHTMLBRElementHTMLBaseElementHTMLBaseFontElementHTMLBodyElementHTMLButtonElementHTMLCanvasElementHTMLCollectionHTMLContentElementHTMLDListElementHTMLDataElementHTMLDataListElementHTMLDetailsElementHTMLDialogElementHTMLDivElementHTMLDocumentHTMLElementHTMLEmbedElementHTMLFieldSetElementHTMLFontElementHTMLFormControlsCollectionHTMLFormElementHTMLFrameSetElementHTMLHRElementHTMLHeadElementHTMLHeadingElementHTMLHtmlElementHTMLHyperlinkElementUtilsHTMLIFrameElementHTMLImageElementHTMLInputElementHTMLIsIndexElementHTMLKeygenElementHTMLLIElementHTMLLabelElementHTMLLegendElementHTMLLinkElementHTMLMapElementHTMLMarqueeElementHTMLMediaElementHTMLMetaElementHTMLMeterElementHTMLModElementHTMLOListElementHTMLObjectElementHTMLOptGroupElementHTMLOptionElementHTMLOptionsCollectionHTMLOutputElementHTMLParagraphElementHTMLParamElementHTMLPictureElementHTMLPreElementHTMLProgressElementHTMLQuoteElementHTMLScriptElementHTMLSelectElementHTMLShadowElementHTMLSlotElementHTMLSourceElementHTMLSpanElementHTMLStyleElementHTMLTableCaptionElementHTMLTableCellElementHTMLTableColElementHTMLTableDataCellElementHTMLTableElementHTMLTableHeaderCellElementHTMLTableRowElementHTMLTableSectionElementHTMLTemplateElementHTMLTextAreaElementHTMLTimeElementHTMLTitleElementHTMLTrackElementHTMLUListElementHTMLUnknownElementHTMLVideoElementHashChangeEventHeadersHistoryHkdfParamsHmacImportParamsHmacKeyGenParams
IDBCursorIDBCursorSyncIDBCursorWithValueIDBDatabaseIDBDatabaseExceptionIDBDatabaseSyncIDBEnvironmentIDBEnvironmentSyncIDBFactoryIDBFactorySyncIDBIndexIDBIndexSyncIDBKeyRangeIDBLocaleAwareKeyRangeIDBMutableFileIDBObjectStoreIDBObjectStoreSyncIDBOpenDBRequestIDBRequestIDBTransactionIDBTransactionSyncIDBVersionChangeEventIDBVersionChangeRequestIIRFilterNodeIdleDeadlineImageBitmapImageBitmapRenderingContextImageCaptureImageDataIndexInputDeviceCapabilitiesInputEventInstallEventInstallTriggerIntersectionObserverIntersectionObserverEntryInterventionReportBody
LinearAccelerationSensorLinkStyleLocalFileSystemLocalFileSystemSyncLocalMediaStreamLocationLockLockManagerLockedFileLongRange
MIDIAccessMIDIConnectionEventMIDIInputMIDIInputMapMIDIOutputMapMSCandidateWindowHideMSCandidateWindowShowMSCandidateWindowUpdateMSGestureEventMSGraphicsTrustMSManipulationEventMSRangeCollectionMSSiteModeEventMagnetometerMediaCapabilitiesMediaCapabilitiesInfoMediaConfigurationMediaDecodingConfigurationMediaDeviceInfoMediaDevicesMediaElementAudioSourceNodeMediaEncodingConfigurationMediaErrorMediaKeyMessageEventMediaKeySessionMediaKeyStatusMapMediaKeySystemAccessMediaKeySystemConfigurationMediaKeysMediaMetadataMediaQueryListMediaQueryListEventMediaQueryListListenerMediaRecorderMediaRecorderErrorEventMediaSessionMediaSettingsRangeMediaSourceMediaStreamMediaStreamAudioDestinationNodeMediaStreamAudioSourceNodeMediaStreamAudioSourceOptionsMediaStreamConstraintsMediaStreamEventMediaStreamTrackMediaStreamTrackEventMediaTrackConstraintsMediaTrackSettingsMediaTrackSupportedConstraintsMerchantValidationEventMessageChannelMessageEventMessagePortMetadataMimeTypeMimeTypeArrayMouseEventMouseScrollEventMouseWheelEventMutationEventMutationObserverMutationObserverInitMutationRecord
NameListNamedNodeMapNavigationPreloadManagerNavigatorNavigatorConcurrentHardwareNavigatorGeolocationNavigatorIDNavigatorLanguageNavigatorOnLineNavigatorPluginsNavigatorStorageNetworkInformationNodeNodeFilterNodeIteratorNodeListNonDocumentTypeChildNodeNotationNotificationNotificationEventNotifyAudioAvailableEvent
OES_element_index_uintOES_fbo_render_mipmapOES_standard_derivativesOES_texture_floatOES_texture_float_linearOES_texture_half_floatOES_texture_half_float_linearOES_vertex_array_objectOfflineAudioCompletionEventOfflineAudioContextOffscreenCanvasOrientationSensorOscillatorNodeOverconstrainedError
PageTransitionEventPannerNodeParentNodePasswordCredentialPath2DPayerErrorsPaymentAddressPaymentCurrencyAmountPaymentDetailsBasePaymentDetailsUpdatePaymentItemPaymentMethodChangeEventPaymentRequestPaymentRequestEventPaymentRequestUpdateEventPaymentResponsePaymentValidationErrorsPbkdf2ParamsPerformancePerformanceEntryPerformanceFrameTimingPerformanceLongTaskTimingPerformanceMarkPerformanceMeasurePerformanceNavigationPerformanceNavigationTimingPerformanceObserverPerformanceObserverEntryListPerformancePaintTimingPerformanceResourceTimingPerformanceServerTimingPerformanceTimingPeriodicWavePermissionStatusPermissionsPhotoCapabilitiesPluginPluginArrayPointPointerEventPopStateEventPositionPositionErrorPositionOptionsPositionSensorVRDevicePresentationPresentationAvailabilityPresentationConnectionPresentationConnectionAvailableEventPresentationConnectionCloseEventPresentationConnectionListPresentationReceiverPresentationRequestProcessingInstructionProgressEventPromiseRejectionEventPublicKeyCredentialPublicKeyCredentialCreationOptionsPublicKeyCredentialRequestOptionsPushEventPushManagerPushMessageDataPushRegistrationManagerPushSubscription
RTCAnswerOptionsRTCCertificateRTCConfigurationRTCDTMFSenderRTCDTMFToneChangeEventRTCDataChannelRTCDataChannelEventRTCDtlsTransportRTCIceCandidateRTCIceCandidateInitRTCIceCandidatePairRTCIceCandidatePairStatsRTCIceCandidateStatsRTCIceCandidateTypeRTCIceComponentRTCIceGathererStateRTCIceParametersRTCIceProtocolRTCIceRoleRTCIceServerRTCIceTcpCandidateTypeRTCIceTransportRTCIceTransportStateRTCIdentityAssertionRTCIdentityErrorEventRTCIdentityEventRTCNetworkTypeRTCOfferAnswerOptionsRTCOfferOptionsRTCPeerConnectionRTCPeerConnectionIceEventRTCRtpCodecParametersRTCRtpContributingSourceRTCRtpEncodingParametersRTCRtpReceiverRTCRtpSendParametersRTCRtpSenderRTCRtpStreamStatsRTCRtpSynchronizationSourceRTCRtpTransceiverRTCRtpTransceiverDirectionRTCRtpTransceiverInitRTCSctpTransportRTCSessionDescriptionRTCSessionDescriptionCallbackRTCStatsRTCStatsReportRTCStatsTypeRTCTrackEventRTCTrackEventInitRadioNodeListRangeReadableByteStreamControllerReadableStreamReadableStreamBYOBReaderReadableStreamBYOBRequestReadableStreamDefaultControllerReadableStreamDefaultReaderRelativeOrientationSensorRenderingContextReportReportingObserverReportingObserverOptionsRequestRequestDestinationResizeObserverResizeObserverEntryResponseRsaHashedImportParamsRsaHashedKeyGenParamsRsaOaepParamsRsaPssParams
SVGAElementSVGAltGlyphDefElementSVGAltGlyphElementSVGAltGlyphItemElementSVGAngleSVGAnimateColorElementSVGAnimateElementSVGAnimateMotionElementSVGAnimateTransformElementSVGAnimatedAngleSVGAnimatedBooleanSVGAnimatedEnumerationSVGAnimatedIntegerSVGAnimatedLengthSVGAnimatedLengthListSVGAnimatedNumberSVGAnimatedNumberListSVGAnimatedPointsSVGAnimatedPreserveAspectRatioSVGAnimatedRectSVGAnimatedStringSVGAnimatedTransformListSVGAnimationElementSVGCircleElementSVGClipPathElementSVGColorProfileElementSVGComponentTransferFunctionElementSVGCursorElementSVGDefsElementSVGDescElementSVGElementSVGEllipseElementSVGEventSVGExternalResourcesRequiredSVGFEBlendElementSVGFEColorMatrixElementSVGFEComponentTransferElementSVGFECompositeElementSVGFEConvolveMatrixElementSVGFEDiffuseLightingElementSVGFEDisplacementMapElementSVGFEDistantLightElementSVGFEDropShadowElementSVGFEFloodElementSVGFEFuncAElementSVGFEFuncBElementSVGFEFuncGElementSVGFEFuncRElementSVGFEGaussianBlurElementSVGFEImageElementSVGFEMergeElementSVGFEMergeNodeElementSVGFEMorphologyElementSVGFEOffsetElementSVGFEPointLightElementSVGFESpecularLightingElementSVGFESpotLightElementSVGFETileElementSVGFETurbulenceElementSVGFilterElementSVGFilterPrimitiveStandardAttributesSVGFontElementSVGFontFaceElementSVGFontFaceFormatElementSVGFontFaceNameElementSVGFontFaceSrcElementSVGFontFaceUriElementSVGForeignObjectElementSVGGElementSVGGeometryElementSVGGlyphElementSVGGlyphRefElementSVGGradientElementSVGGraphicsElementSVGHKernElementSVGImageElementSVGLengthSVGLengthListSVGLineElementSVGLinearGradientElementSVGMPathElementSVGMaskElementSVGMatrixSVGMeshElementSVGMetadataElementSVGMissingGlyphElementSVGNumberSVGNumberListSVGPathElementSVGPatternElementSVGPointSVGPolygonElementSVGPolylineElementSVGPreserveAspectRatioSVGRadialGradientElementSVGRectSVGRectElementSVGRenderingIntentSVGSVGElementSVGScriptElementSVGSetElementSVGSolidcolorElementSVGStopElementSVGStringListSVGStylableSVGStyleElementSVGSwitchElementSVGSymbolElementSVGTRefElementSVGTSpanElementSVGTestsSVGTextContentElementSVGTextElementSVGTextPathElementSVGTextPositioningElementSVGTitleElementSVGTransformSVGTransformListSVGTransformableSVGURIReferenceSVGUnitTypesSVGUseElementSVGVKernElementSVGViewElementSVGZoomAndPanScreenScreenOrientationScriptProcessorNodeScrollToOptionsSecurityPolicyViolationEventSelectionSensorSensorErrorEventServiceWorkerServiceWorkerContainerServiceWorkerGlobalScopeServiceWorkerMessageEventServiceWorkerRegistrationServiceWorkerStateShadowRootSharedWorkerSharedWorkerGlobalScopeSlotableSourceBufferSourceBufferListSpeechGrammarSpeechGrammarListSpeechRecognitionSpeechRecognitionAlternativeSpeechRecognitionErrorSpeechRecognitionEventSpeechRecognitionResultSpeechRecognitionResultListSpeechSynthesisSpeechSynthesisErrorEventSpeechSynthesisEventSpeechSynthesisUtteranceSpeechSynthesisVoiceStaticRangeStereoPannerNodeStorageStorageEstimateStorageEventStorageManagerStorageQuotaStylePropertyMapStylePropertyMapReadOnlyStyleSheetStyleSheetListSubtleCryptoSyncEventSyncManager
TaskAttributionTimingTextTextDecoderTextEncoderTextMetricsTextTrackTextTrackCueTimeEventTimeRangesTouchTouchEventTouchListTrackDefaultTrackDefaultListTrackEventTransferableTransformStreamTransitionEventTreeWalkerTypeInfo
UIEventURLURLSearchParamsURLUtilsReadOnlyUSBUSBDeviceUSVStringUserDataHandlerUserProximityEvent
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_contextWaveShaperNodeWebGL2RenderingContextWebGLActiveInfoWebGLBufferWebGLContextEventWebGLFramebufferWebGLProgramWebGLQueryWebGLRenderbufferWebGLRenderingContextWebGLSamplerWebGLShaderWebGLShaderPrecisionFormatWebGLSyncWebGLTextureWebGLTransformFeedbackWebGLUniformLocationWebGLVertexArrayObjectWebSocketWheelEventWindowWindowClientWindowEventHandlersWindowOrWorkerGlobalScopeWorkerWorkerGlobalScopeWorkerLocationWorkerNavigatorWorkletWritableStreamWritableStreamDefaultControllerWritableStreamDefaultWriter
参见
文档标签和贡献者
标签:
此页面的贡献者:
mdnwebdocs-bot,
RainSlide,
ANTI01,
guoooofu,
thanly,
stuxt,
zihengCat,
AsukaSong,
shizhouyu,
heineiuo,
fygyx1,
keller0,
xgqfrms-GitHub,
teoli,
Darrel.Hsu,
Fiag,
ethertank,
ziyunfei,
fengzilong
最后编辑者:
mdnwebdocs-bot,