Index

Found 5328 pages:

# Page Tags and summary
1 Web APIs API, DOM, Landing, Reference, Web
当为 Web 编写代码时,有大量可用 Web API。以下是当开发 Web APP 或站点时可能用到的所有 API 和接口 (对象类型) 的列表。
2 ANGLE_instanced_arrays API, Reference, WebGL, WebGL extension
ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
3 ANGLE_instanced_arrays.drawArraysInstancedANGLE() ANGLE_instanced_arrays, API, Method, Reference, WebGL, WebGL extension
ANGLE_instanced_arrays.drawArraysInstancedANGLE() 方法源于 WebGL API renders primitives from array data like the gl.drawArrays() method. In addition, it can execute multiple instances of the range of elements.
4 ANGLE_instanced_arrays.drawElementsInstancedANGLE() ANGLE_instanced_arrays, API, Method, Reference, WebGL, WebGL extension
ANGLE_instanced_arrays.drawElementsInstancedANGLE() 方法源于 WebGL API renders primitives from array data like the gl.drawElements() method. In addition, it can execute multiple instances of a set of elements.
5 ANGLE_instanced_arrays.vertexAttribDivisorANGLE() ANGLE_instanced_arrays, API, Method, Reference, WebGL, WebGL extension
ANGLE_instanced_arrays.vertexAttribDivisorANGLE() 方法源于 WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawArraysInstancedANGLE() and ext.drawElementsInstancedANGLE() .
6 AbortController API, AbortController, Experimental, Interface, Reference
AbortController interface represents a controller object that allows you to abort one or more DOM requests as and when desired.
7 AbortController.AbortController() API, AbortController, Constructor, Experimental, Fetch, Reference
AbortController() constructor creates a new AbortController object instance.
8 AbortController.abort() API, AbortController, Experimental, Fetch, Method, Reference, abort()
abort() 方法源于 AbortController interface aborts a DOM request (e.g. a Fetch request) before it has completed. This is able to abort fetch requests , consumption of any response Body , and streams.
9 AbortController.signal API, AbortController, Experimental, Fetch, Property, Reference, signal
signal read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort a DOM request as desired.
10 AbortSignal API, AbortSignal, DOM, Experimental, Interface, Reference
AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController 对象。
11 AbortSignal.aborted API, AbortSignal, Experimental, Property, Reference, aborted
aborted 只读特性返回 Boolean that indicates whether the DOM request(s) the signal is communicating with is/are aborted ( true ) or not ( false ).
12 AbortSignal.onabort API, AbortSignal, Event Handler, Experimental, Fetch, Property, Reference, onabort
onabort read-only property of the FetchSignal interface is an event handler Invoked when an abort event fires, i.e. when the fetch request(s) the signal is communicating with is/are aborted.
13 AbortSignal: abort event abort, events
abort event of the 抓取 API is fired when a fetch request is aborted, i.e. using AbortController.abort() .
14 AbsoluteOrientationSensor API, AbsoluteOrientationSensor, Generic Sensor API, Interface, Orientation Sensor API, OrientationSensor, Reference, Sensor, Sensor APIs, Sensors
AbsoluteOrientationSensor interface of the Sensor APIs describes the device's physical orientation in relation to the Earth's reference coordinate system.
15 AbsoluteOrientationSensor API, AbsoluteOrientationSensor, Constructor, Generic Sensor API, Orientation Sensor API, Reference, Sensor, Sensor APIs, Sensors
AbsoluteOrientationSensor constructor creates a new AbsoluteOrientationSensor object which describes the device's physical orientation in relation to the Earth's reference coordinate system.
16 AbstractRange API, Abstract, Abstract Interface, AbstractRange, DOM, DOM API, Interface, Range, Reference
AbstractRange abstract interface is the base class upon which all DOM range types are defined. A range is an object that indicates the start and end points of a section of content within the document.
17 AbstractRange.collapsed API, AbstractRange, DOM, DOM API, Empty, Property, Range, Reference, collapsed
collapsed read-only property of the AbstractRange interface returns true if the range's start position and end position are the same.
18 AbstractRange.endContainer API, AbstractRange, DOM, DOM API, End, Node, Position, Property, Range, Read-only, Reference, container, endContainer
endContainer 特性为 AbstractRange interface returns the Node in which the end of the range is located.
19 AbstractRange.endOffset API, AbstractRange, DOM, DOM API, End, Property, Range, Read-only, Reference, endOffset, offset
endOffset 特性为 AbstractRange interface returns the offset into the end node of the range's end position.
20 AbstractRange.startContainer API, AbstractRange, DOM, DOM API, Property, Range, Read-only, Reference, start, startContainer
The read-only startContainer 特性为 AbstractRange interface returns the start Node for the range.
21 AbstractRange.startOffset API, AbstractRange, DOM, DOM API, Property, Range, Read-only, Reference, offset, startOffset
The read-only startOffset 特性为 AbstractRange interface returns the offset into the start node of the range's start position.
22 AbstractWorker API, Abstract, AbstractWorker, Interface, Reference, SharedWorker, Web Workers, Web Workers API, Worker
AbstractWorker interface of the Web 工作者 API is an abstract interface that defines properties and methods that are common to all types of worker, including not only the basic Worker , but also ServiceWorker and SharedWorker .
23 AbstractWorker.onerror API, AbstractWorker, EventHandler, Property, Reference, Web Workers, Workers, onerror
AbstractWorker .onerror 特性为 AbstractWorker interface represents an EventHandler , that is a function to be called when the error event occurs and bubbles through the Worker .
24 Accelerometer API, Accelerometer, Accelerometer API, Generic Sensor API, Interface, Reference, Sensor, Sensor APIs, Sensors
Accelerometer interface of the Sensor APIs provides on each reading the acceleration applied to the device along all three axes.
25 Accelerometer.Accelerometer() API, Accelerometer, Accelerometer API, Constructor, Generic Sensor API, Reference, Sensor, Sensor APIs, Sensors
Accelerometer constructor creates a new Accelerometer object which returns the acceleration of the device along all three axes at the time it is read.
26 Accelerometer.x API, Accelerometer, Accelerometer API, Generic Sensor API, Property, Reference, Sensor, Sensor APIs, Sensors, x
x read-only property of the Accelerometer interface returns a double precision integer containing the acceleration of the device along the its x axis.
27 Accelerometer.y API, Accelerometer, Accelerometer API, Generic Sensor API, Property, Reference, Sensor, Sensor APIs, Sensors, y
y read-only property of the Accelerometer interface returns a double precision integer containing the acceleration of the device along the its y axis.
28 Accelerometer.z API, Accelerometer, Accelerometer API, Generic Sensor API, Property, Reference, Sensor, Sensor APIs, Sensors, z
z read-only property of the Accelerometer interface returns a double precision integer containing the acceleration of the device along the its z axis.
29 AddressErrors API, Address, AddressErrors, Dictionary, Errors, Interface, Payment Address, Payment Request, Payment Request API, Reference, payment, paymentAddress
AddressErrors dictionary is used by the 支付请求 API to to report validation errors in a physical address (typically a billing address or a shipping address).
30 AddressErrors.addressLine API, AddressErrors, Error, Payment Request, Payment Request API, Property, Reference, Validation, addressLine, payment
An object based on AddressErrors includes an addressLine property when validation of the address finds one or more errors in the array of strings in the address's addressLine . The returned string explains the error and should offer suggestions for how to correct it.
31 AddressErrors.city API, Address, AddressErrors, Error, Payment Request, Payment Request API, Property, Read-only, Reference, city, payment
An object based on AddressErrors includes a city property when validation of the address fails for the value given for the address's city property. The returned string explains the error and should offer suggestions for how to correct it.
32 AddressErrors.country API, AddressErrors, Error, Payment Request, Payment Request API, Property, Reference, Validation, country, payment
An object based on AddressErrors includes a country property if during validation of the address the specified value of country was determined to be invalid. The value is a string describing the error and should offer suggestions for how to correct it.
33 AddressErrors.dependentLocality API, AddressErrors, Error, Locality, Payment Request, Payment Request API, Property, Read-only, Reference, dependentLocality, payment
An object based on AddressErrors includes a dependentLocality property when the address's dependentLocality property couldn't be validated. The returned string explains the error and should offer suggestions for how to correct it.
34 AddressErrors.languageCode API, Address, AddressErrors, Deprecated, Language, LanguageCode, Locale, Payment Request, Payment Request API, Property, Reference, payment
An object based on AddressErrors includes a languageCode property when the address's languageCode property couldn't be validated. The returned string explains the error and should offer suggestions for how to correct it.
35 AddressErrors.organization API, Address, AddressErrors, Error, Payment Request, Payment Request API, Property, Read-only, Reference, organization, payment
An object based on AddressErrors includes an organization property when the address's organization property couldn't be validated. The returned string explains the error and should offer suggestions for how to correct it.
36 AddressErrors.phone API, Address, AddressErrors, Payment Request, Payment Request API, Phone, Phone Number, Property, Read-only, Reference, Telephone Number, Téléphone, Validation, payment
An object based on AddressErrors includes a phone property when the address's phone property couldn't be validated. The returned string explains the error and should offer suggestions for how to correct it.
37 AddressErrors.postalCode API, Address, AddressErrors, Payment Request, Payment Request API, Post Code, Postal Code, Property, Read-only, Reference, Validation, ZIP, ZIP Code, payment, postalCode
An object based on AddressErrors includes a postalCode property when the address's postalCode property couldn't be validated. The returned string explains the error and should offer suggestions for how to correct it.
38 AddressErrors.recipient API, Address, AddressErrors, Error, Payment Request, Payment Request API, Property, Read-only, Reference, name, payment
An object based on AddressErrors includes a recipient property when the address's recipient property couldn't be validated. The returned string explains the error and should offer suggestions for how to correct it.
39 AddressErrors.region API, Address, AddressErrors, Error, Payment Request, Payment Request API, Property, Read-only, Reference, Validation, payment, region
An object based on AddressErrors includes a region property when the address's region property couldn't be validated. The returned string explains the error and should offer suggestions for how to correct it.
40 AddressErrors.regionCode API, Error, Payment Request, Payment Request API, Property, Read-only, Reference, Validation, payment, paymentAddress, region, regionCode
An object based on AddressErrors includes a regionCode property when the address's regionCode property couldn't be validated. The returned string explains the error and should offer suggestions for how to correct it.
41 AddressErrors.sortingCode API, Address, AddressErrors, Error, Payment Request, Payment Request API, Property, Read-only, Reference, Validation, payment, sortingCode
An object based on AddressErrors includes a sortingCode property when the address's sortingCode property couldn't be validated. The returned string explains the error and should offer suggestions for how to correct it.
42 AesCbcParams API, AesCbcParams, Dictionary, Reference, Web Crypto API
AesCbcParams dictionary of the Web 加密 API represents the object that should be passed as the algorithm parameter into SubtleCrypto.encrypt() , SubtleCrypto.decrypt() , SubtleCrypto.wrapKey() ,或 SubtleCrypto.unwrapKey() , when using the AES-CBC algorithm.
43 AesCtrParams API, AesCtrParams, Dictionary, Reference, Web Crypto API
AesCtrParams dictionary of the Web 加密 API represents the object that should be passed as the algorithm parameter into SubtleCrypto.encrypt() , SubtleCrypto.decrypt() , SubtleCrypto.wrapKey() ,或 SubtleCrypto.unwrapKey() , when using the AES-CTR algorithm.
44 AesGcmParams API, AesGcmParams, Dictionary, Reference, Web Crypto API
AesGcmParams dictionary of the Web 加密 API represents the object that should be passed as the algorithm parameter into SubtleCrypto.encrypt() , SubtleCrypto.decrypt() , SubtleCrypto.wrapKey() ,或 SubtleCrypto.unwrapKey() , when using the AES-GCM algorithm.
45 AesKeyGenParams API, AesKeyGenParams, Dictionary, Reference, Web Crypto API
See the examples for SubtleCrypto.generateKey() .
46 环境光事件 Ambient Light
The ambient light events are a handy way to make a web page or an application aware of any change in the light intensity. It allows them to react to such a change, for example by changing the color contrast of the User Interface (UI) or by changing the exposure necessary to take a picture.
47 Ambient Light Sensor API API, Ambient Light Sensor API, AmbientLightSensor, Junk, Landing, Overview, Reference
No summary!
48 AmbientLightSensor API, Ambient Light Sensor API, AmbientLightSensor, Generic Sensor API, Interface, Reference, Sensor, Sensor APIs, Sensors
AmbientLightSensor interface of the the Sensor APIs returns the current light level or illuminance of the ambient light around the hosting device.
49 AmbientLightSensor.AmbientLightSensor() API, Ambient Light Sensor API, AmbientLightSensor, Constructor, Reference
AmbinentLightSensor() constructor creates a new AmbientLightSensor object, which returns the current light level or illuminance of the ambient light around the hosting device.
50 AmbientLightSensor.illuminance API, Ambient Light Level API, Generic Sensor API, Property, Reference, Sensor, Sensor APIs, Sensors, illuminance
illuminance 特性为 AmbientLightSensor interface returns the current light level in lux of the ambient light level around the hosting device.
51 AnalyserNode API, AnalyserNode, Interface, Reference, Web Audio API
AnalyserNode interface represents a node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.
52 AnalyserNode.AnalyserNode() API, AnalyserNode, Audio, Constructor, Media, Reference, Web Audio API
AnalyserNode constructor of the Web 音频 API creates a new AnalyserNode object instance.
53 AnalyserNode.fftSize API, AnalyserNode, Property, Reference, Web Audio API, fftSize
fftSize 特性为 AnalyserNode interface is an unsigned long value and represents the window size in samples that is used when performing a Fast Fourier Transform (FFT) to get frequency domain data.
54 AnalyserNode.frequencyBinCount API, AnalyserNode, Property, Reference, Web Audio API, frequencyBinCount
frequencyBinCount read-only property of the AnalyserNode interface is an unsigned integer half that of the AnalyserNode.fftSize . This generally equates to the number of data values you will have to play with for the visualization.
55 AnalyserNode.getByteFrequencyData() API, AnalyserNode, Method, Reference, Référence(2), Web Audio API
getByteFrequencyData() 方法源于 AnalyserNode interface copies the current frequency data into a Uint8Array (unsigned byte array) passed into it.
56 AnalyserNode.getByteTimeDomainData() API, AnalyserNode, Method, Reference, Référence(2), Web Audio API
getByteTimeDomainData() 方法源于 AnalyserNode Interface copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it.
57 AnalyserNode.getFloatFrequencyData() API, AnalyserNode, Method, Reference, Référence(2), Web Audio API
getFloatFrequencyData() 方法源于 AnalyserNode Interface copies the current frequency data into a Float32Array array passed into it.
58 AnalyserNode.getFloatTimeDomainData() API, AnalyserNode, Method, Reference, Référence(2), Web Audio API
getFloatTimeDomainData() 方法源于 AnalyserNode Interface copies the current waveform, or time-domain, data into a Float32Array array passed into it.
59 AnalyserNode.maxDecibels API, AnalyserNode, Property, Reference, Web Audio API, maxDecibels
maxDecibels 特性为 AnalyserNode interface is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte/float values — basically, this specifies the maximum value for the range of results when using getFloatFrequencyData() or getByteFrequencyData() .
60 AnalyserNode.minDecibels API, AnalyserNode, Property, Reference, Référence(2), Web Audio API, minDecibels
minDecibels 特性为 AnalyserNode interface is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte/float values — basically, this specifies the minimum value for the range of results when using getFloatFrequencyData() or getByteFrequencyData() .
61 AnalyserNode.smoothingTimeConstant API, AnalyserNode, Property, Reference, Référence(2), Web Audio API, smoothingTimeConstant
smoothingTimeConstant 特性为 AnalyserNode interface is a double value representing the averaging constant with the last analysis frame. It's basically an average between the current buffer and the last buffer the AnalyserNode processed, and results in a much smoother set of value changes over time.
62 Animation API, Animations, Experimental, Interface, Reference, Web Animations, waapi, web animations api
Animation interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source.
63 Animation() API, Animation, Animations, Constructor, Experimental, Reference, web animations api
Animation() constructor of the Web Animations API returns a new Animation object instance.
64 Animation.cancel() API, Animation, Method, Reference, Web Animations, cancel, waapi, web animations api
The Web Animations API's cancel() 方法源于 Animation interface clears all KeyframeEffect s caused by this animation and aborts its playback.
65 Animation.currentTime API, Animation, Animations, Property, Reference, Web Animations, web animations api
Animation .currentTime 特性为 Web Animations API returns and sets the current time value of the animation in milliseconds, whether running or paused.
66 Animation.effect API, Animation, Experimental, Property, Reference, Web Animations, effect, web animations api
Animation .effect 特性为 Web Animations API gets and sets the target effect of an animation. The target effect may be either an effect object of a type based on AnimationEffectReadOnly ,譬如 KeyframeEffect ,或 null .
67 Animation.finish() API, Animation, Finish, Interface, Method, Reference, Web Animations, waapi, web animations api
finish() 方法源于 Web Animations API 's Animation Interface sets the current playback time to the end of the animation corresponding to the current playback direction.
68 Animation.finished API, Animation, Experimental, Property, Reference, Web Animations, finished, web animations api
Animation .finished read-only property of the Web Animations API 返回 Promise which resolves once the animation has finished playing.
69 Animation.id API, Animation, Property, Reference, id, web animations api
Animation .id 特性为 Web Animations API returns or sets a string used to identify the animation.
70 Animation.oncancel API, Animation, Event Handler, Property, Reference, Web Animations, events, oncancel, web animations api
oncancel 特性为 Web Animations API 's Animation interface is the event handler for the cancel 事件。
71 Animation.onfinish API, Animation, Event Handler, Property, Reference, Web Animations, events, onfinish, waapi, web animations api
Animation interface's onfinish property (from the Web Animations API ) is the event handler for the finish event. This event is sent when the animation finishes playing.
72 Animation.pause() Animation, Method, Reference, Web Animations, pause, waapi, web animations api
pause() 方法源于 Web Animations API 's Animation interface suspends playback of the animation.
73 Animation.pending API, Animation, Animations, Property, Reference, Web Animations, web animations api
The read-only Animation .pending 特性为 Web Animations API indicates whether the animation is currently waiting for an asynchronous operation such as initiating playback or pausing a running animation.
74 Animation.play() API, Animation, Interface, Method, Reference, Web Animations, play, waapi, web animations api
play() 方法源于 Web Animations API 's Animation Interface starts or resumes playing of an animation. If the animation is finished, calling play() restarts the animation, playing it from the beginning.
75 Animation.playState API, Animation, Property, Reference, Web Animations, playState, web animations api
Animation .playState 特性为 Web Animations API returns and sets an enumerated value describing the playback state of an animation.
76 Animation.playbackRate API, Animation, Interface, Property, Reference, Web Animations, playbackRate, web animations api
Animation .playbackRate 特性为 Web Animations API returns or sets the playback rate of the animation.
77 Animation.ready API, Animation, Experimental, Property, Ready, Ready Promise, Reference, Web Animations, web animations api
The read-only Animation.ready 特性为 Web Animations API 返回 Promise which resolves when the animation is ready to play. A new promise is created every time the animation enters the "pending" play state as well as when the animation is canceled, since in both of those scenarios, the animation is ready to be started again.
78 Animation.reverse() API, Animation, Interface, Method, Reference, Web Animations, reverse, waapi, web animations api
Animation.reverse() 方法源于 Animation Interface reverses the playback direction, meaning the animation ends at its beginning. If called on an unplayed animation, the whole animation is played backwards. If called on a paused animation, the animation will continue in reverse.
79 Animation.startTime API, Animation, Interface, Property, Reference, Web Animations, startTime, web animations api
Animation.startTime 特性为 Animation interface is a double-precision floating-point value which indicates the scheduled time when an animation's playback should begin.
80 Animation.timeline API, Animation, Experimental, Property, Reference, Web Animations, timeline, web animations api
Animation.timeline 特性为 Animation interface returns or sets the timeline associated with this animation. A timeline is a source of time values for synchronization purposes, and is an AnimationTimeline -based object. By default, the animation's timeline and the Document 's timeline are the same.
81 Animation.updatePlaybackRate() API, Animation, Experimental, Interface, Method, Reference, Web Animations, playbackRate, updatePlaybackRate, waapi, web animations api
updatePlaybackRate() 方法源于 Web Animations API 's Animation Interface sets the speed of an animation after first synchronizing its playback position.
82 AnimationEffect API, Animation, Experimental, Interface, Reference, Web Animations, web animations api
AnimationEffect interface of the Web Animations API defines current and future animation effects like KeyframeEffect , which can be passed to Animation objects for playing, and KeyframeEffectReadOnly (which is used by CSS Animations and 过渡 ).
83 AnimationEffect.getComputedTiming() API, Animation, Experimental, Method, Reference, getComputedTiming, waapi, web animations api
getComputedTiming() 方法源于 AnimationEffect interface returns the calculated timing properties for this animation effect.
84 AnimationEffect.getTiming() API, Animation, Experimental, Method, Reference, Timing, waapi, web animations api
AnimationEffect.getTiming() 方法源于 AnimationEffect interface returns an EffectTiming object containing the timing properties for the Animation Effect.
85 AnimationEffect.updateTiming() API, Animation, Experimental, Method, Reference, Web Animations, waapi, web animations api
updateTiming() 方法源于 AnimationEffect interface updates the specified timing properties for an animation effect.
86 AnimationEvent API, Experimental, Interface, Reference, Web Animations
AnimationEvent interface represents events providing information related to animations .
87 AnimationEvent() API, AnimationEvent, CSSOM, Constructor, Experimental, Reference, Web Animations
AnimationEvent() constructor returns a newly created AnimationEvent , representing an event in relation with an animation.
88 AnimationEvent.animationName API, AnimationEvent, CSSOM, Experimental, Property, Reference, Web Animations
AnimationEvent.animationName read-only property is a DOMString containing the value of the animation-name CSS property associated with the transition.
89 AnimationEvent.elapsedTime API, AnimationEvent, CSSOM, Experimental, Property, Reference, Web Animations
AnimationEvent.elapsedTime read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused. For an "animationstart" event, elapsedTime is 0.0 unless there was a negative value for animation-delay , in which case the event will be fired with elapsedTime containing (-1 * delay ) .
90 AnimationEvent.initAnimationEvent() API, AnimationEvent, CSSOM, Method, Obsolete, Web Animations
AnimationEvent.initAnimationEvent() method Initializes an animation event created using the deprecated Document.createEvent("AnimationEvent") 方法。
91 AnimationEvent.pseudoElement API, AnimationEvent, CSS, CSSOM, Experimental, Property, Reference, Web Animations
AnimationEvent.pseudoElement read-only property is a DOMString , starting with '::' , containing the name of the pseudo-element the animation runs on. If the animation doesn't run on a pseudo-element but on the element, an empty string: '' .
92 AnimationPlaybackEvent API, Animation, AnimationPlaybackEvent, Experimental, Interface, Reference, events, waapi, web animations api
The AnimationPlaybackEvent interface of the Web Animations API represents animation events.
93 AnimationPlaybackEvent.AnimationPlaybackEvent() API, Animation, AnimationPlaybackEvent, AnimationPlaybackEvent(), Constructor, Experimental, Reference, waapi, web animations api
AnimationPlaybackEvent() constructor of the Web Animations API returns a new AnimationPlaybackEvent object instance.
94 AnimationPlaybackEvent.currentTime API, Animation, AnimationPlaybackEvent, Attribute, Experimental, Property, Reference, currentTime, waapi, web animations api
currentTime read-only property of the AnimationPlaybackEvent interface represents the current time of the animation that generated the event at the moment the event is queued. This will be unresolved if the animation was idle at the time the event was generated.
95 AnimationPlaybackEvent.timelineTime API, Animation, AnimationPlaybackEvent, Attribute, Experimental, Property, Reference, timelineTime, waapi, web animations api
timelineTime read-only property of the AnimationPlaybackEvent interface represents the time value of the animation's timeline at the moment the event is queued. This will be unresolved if the animation was not associated with a timeline at the time the event was generated or if the associated timeline was inactive.
96 AnimationTimeline API, Animation, AnimationTimeline, Experimental, Interface, Reference, Web Animations, waapi, web animations api
AnimationTimeline interface of the Web Animations API represents the timeline of an animation. This interface exists to define timeline features (inherited by DocumentTimeline and future timeline types) and is not itself directly used by developers. Anywhere you see AnimationTimeline , you should use DocumentTimeline or any other timeline type instead.
97 AnimationTimeline.currentTime API, Animation, AnimationTimeline, Experimental, Property, Read-only, Reference, Web Animations, currentTime, waapi, web animations api
currentTime read-only property of the Web Animations API 's AnimationTimeline interface returns the timeline's current time in milliseconds, or null if the timeline is inactive.
98 ArrayBufferView API, Interface, JavaScript, Reference, Typed Arrays
ArrayBufferView is a helper type representing any of the following JavaScript TypedArray types:
99 Attr API, DOM
Attr interface represents one of a DOM element's attributes as an object. In most DOM methods, you will directly retrieve the attribute as a string (e.g., Element.getAttribute() ), but certain functions (e.g., Element.getAttributeNode() ) or means of iterating return Attr types.
100 Attr.localName API, DOM, Property, Reference
Attr.localName read-only property returns the local part of the qualified name of an element.
101 Attr.namespaceURI API, DOM, Property, Reference
Attr.namespaceURI read-only property returns the namespace URI of the attribute, or null if the element is not in a namespace.
102 Attr.prefix API, DOM, Property, Reference
Attr.prefix read-only property returns the namespace prefix of the specified attribute, or null if no prefix is specified.
103 AudioBuffer API, AudioBuffer, Interface, Reference, Web Audio API
AudioBuffer interface represents a short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer() . Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode .
104 AudioBuffer() API, Audio, AudioBuffer, Buffer, Constructor, Media, Reference, Web Audio, Web Audio API, sound
AudioBuffer constructor of the Web 音频 API creates a new AudioBuffer 对象。
105 AudioBuffer.copyFromChannel() API, Audio, AudioBuffer, Copying, Frames, Method, Reference, Samples, Web Audio, Web Audio API, copy, copyFromChannel, sound
copyFromChannel() 方法源于 AudioBuffer interface copies the audio sample data from the specified channel of the AudioBuffer to a specified Float32Array .
106 AudioBuffer.copyToChannel() API, Audio, AudioBuffer, Method, Reference, Web Audio API, copyToChannel
copyToChannel() 方法源于 AudioBuffer interface copies the samples to the specified channel of the AudioBuffer , from the source array.
107 AudioBuffer.duration API, AudioBuffer, Property, Reference, Web Audio API, duration
A double.
108 AudioBuffer.getChannelData() API, AudioBuffer, Method, Reference, Web Audio API
getChannelData() 方法源于 AudioBuffer Interface returns a Float32Array containing the PCM data associated with the channel, defined by the channel parameter (with 0 representing the first channel).
109 AudioBuffer.length API, AudioBuffer, Property, Reference, Web Audio API, length
length 特性为 AudioBuffer interface returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer.
110 AudioBuffer.numberOfChannels API, AudioBuffer, Property, Reference, Web Audio API, numberOfChannels
An integer.
111 AudioBuffer.sampleRate API, AudioBuffer, Property, Reference, Web Audio API, sampleRate
A floating-point value indicating the current sample rate of the buffers data, in samples per second.
112 AudioBufferSourceNode API, Audio, AudioBufferSourceNode, Interface, Media, Reference, Web Audio API
AudioBufferSourceNode interface is an AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer . It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.
113 AudioBufferSourceNode.AudioBufferSourceNode() API, Audio, AudioBufferSourceNode, Constructor, Media, Reference, Web Audio API
AudioBufferSourceNode() constructor creates a new AudioBufferSourceNode object instance.
114 AudioBufferSourceNode.buffer API, Audio, AudioBufferSourceNode, Buffer, Media, Property, Reference, Web Audio API, sound
buffer 特性为 AudioBufferSourceNode interface provides the ability to play back audio using an AudioBuffer as the source of the sound data.
115 AudioBufferSourceNode.detune API, Audio, AudioBufferSourceNode, Property, Reference, Web Audio API, detune
detune 特性为 AudioBufferSourceNode interface is a k-rate AudioParam representing detuning of oscillation in cents .
116 AudioBufferSourceNode.loop API, Audio, AudioBufferSourceNode, Loop, Media, Property, Reference, Web Audio API, sound
loop property's default value is false .
117 AudioBufferSourceNode.loopEnd API, Audio, AudioBufferSourceNode, Media, Property, Reference, Web Audio API, loopEnd, sound
A floating-point number indicating the offset, in seconds, into the audio buffer at which each loop will loop return to the beginning of the loop (that is, the current play time gets reset to AudioBufferSourceNode.loopStart ). This property is only used if the loop 特性为 true .
118 AudioBufferSourceNode.loopStart API, Audio, AudioBufferSourceNode, Media, Property, Reference, Web Audio API, loopStart, sound
loopStart 特性为 AudioBufferSourceNode interface is a floating-point value indicating, in seconds, where in the AudioBuffer the restart of the play must happen.
119 AudioBufferSourceNode.playbackRate API, AudioBufferSourceNode, Property, Reference, Web Audio API, playbackRate
playbackRate 特性为 AudioBufferSourceNode interface Is a k-rate AudioParam that defines the speed at which the audio asset will be played.
120 AudioBufferSourceNode.start() API, Audio, AudioBufferSourceNode, Media, Method, Reference, Web Audio API, sound, start
undefined .
121 AudioConfiguration API, Audio, AudioConfiguration, Experimental, Interface, Media Capabilities API, Reference, Video
AudioConfiguration dictionary of the 媒体能力 API defines the audio file being tested when calling MediaCapabilities.encodingInfo() or MediaCapabilities.decodingInfo() to query whether a specific audio configuration is supported, smooth, and/or power efficient.
122 AudioContext API, Audio, AudioContext, Interface, Reference, Web Audio API, sound
AudioContext interface represents an audio-processing graph built from audio modules linked together, each represented by an AudioNode .
123 AudioContext() Audio, Audio Context, Audio Graph, AudioContext, Constructor, Context, Media, Media Graph, Reference, Web Audio, Web Audio API
AudioContext() constructor creates a new AudioContext object which represents an audio-processing graph, built from audio modules linked together, each represented by an AudioNode .
124 AudioContext.baseLatency API, Audio, AudioContext, Experimental, Media, Property, Web Audio API, baseLatency
baseLatency read-only property of the AudioContext interface returns a double that represents the number of seconds of processing latency incurred by the AudioContext passing the audio from the AudioDestinationNode to the audio subsystem.
125 AudioContext.close() API, AudioContext, Media, Method, Reference, Web Audio API, close
close() 方法源于 AudioContext Interface closes the audio context, releasing any system audio resources that it uses.
126 AudioContext.createJavaScriptNode() API, Audio, Method, Obsolete, Reference, Web, createJavaScriptNode
The following script illustrates the use of createJavaScriptNode() :
127 AudioContext.createMediaElementSource() API, AudioContext, Method, Reference, Référence(2), Web Audio API, createMediaElementSource
For more details about media element audio source nodes, check out the MediaElementAudioSourceNode reference page.
128 AudioContext.createMediaStreamDestination() API, AudioContext, Method, Reference, Référence(2), Web Audio API, createMediaStreamDestination
MediaStream is created when the node is created and is accessible via the MediaStreamAudioDestinationNode 's strea m attribute. This stream can be used in a similar way as a MediaStream obtained via navigator.getUserMedia — it can, for example, be sent to a remote peer using the RTCPeerConnection addStream() 方法。
129 AudioContext.createMediaStreamSource() API, Audio, AudioContext, AudioNode, Media, MediaStream, MediaStreamTrack, Method, Reference, Web, Web Audio, Web Audio API, createMediastreamSource
For more details about media stream audio source nodes, check out the MediaStreamAudioSourceNode reference page.
130 AudioContext.createMediaStreamTrackSource() API, Audio, AudioContext, MediaStreamTrack, MediaStreamTrackAudioSource, Method, Node, Reference, Web Audio API, createMediaStreamTrackSource, sound, source, track
A MediaStreamTrackAudioSourceNode object which acts as a source for audio data found in the specified audio track.
131 AudioContext.createWaveTable() API, AudioContext, Method, Obsolete, Reference, Web Audio API, createWaveTable
AudioContext method createWaveTable() 现为 obsolete ; you should instead use the method createPeriodicWave() .
132 AudioContext.getOutputTimestamp() API, Audio, AudioContext, Method, Reference, Web Audio API, getOutputTimestamp, sound
getOutputTimestamp() 特性为 AudioContext interface returns a new AudioTimestamp object containing two correlated context's audio stream position values.
133 AudioContext.outputLatency API, Audio, AudioContext, Experimental, Property, Reference, Web Audio API, outputLatency
outputLatency read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context.
134 AudioContext.resume() API, Audio, AudioContext, Method, Reference, Web Audio API, resume
resume() 方法源于 AudioContext interface resumes the progression of time in an audio context that has previously been suspended.
135 AudioContext.suspend() API, Audio, AudioContext, Method, Reference, Web Audio API, suspend
suspend() 方法源于 AudioContext Interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while.
136 AudioContextLatencyCategory API, Audio, Audio Context, AudioContextLatencyCategory, Enum, Interface, Media, Reference, Type, Web Audio, Web Audio API, latency
AudioContextLatencyCategory type is an enumerated set of strings which are used to select one of a number of default values for acceptable maximum latency of an audio context.
137 AudioContextOptions API, Audio, AudioContext, AudioContextOptions, Configuration, Context, Dictionary, Interface, Options, Reference, Settings, Web Audio API, sampleRate
AudioContextOptions dictionary is used to specify configuration options when constructing a new AudioContext object to represent a graph of web audio nodes.
138 AudioContextOptions.latencyHint API, Audio, Audio Context, AudioContext, AudioContextOptions, Context, Options, Property, Reference, Web Audio, Web Audio API, latency, latencyHint
AudioContextOptions dictionary (used when instantiating an AudioContext ) may contain a property named latencyHint , which indicates the preferred maximum latency in seconds for the audio context.
139 AudioContextOptions.sampleRate API, Audio, AudioContext, AudioContextOptions, Dictionary, Interface, Media, Options, Reference, Sample Rate, Web Audio, Web Audio API, sampleRate
AudioContextOptions dictionary (used when instantiating an AudioContext ) may contain a property named sampleRate , which indicates the sample rate to use for the new context.
140 AudioDestinationNode API, AudioDestinationNode, Interface, Reference, Web Audio API
AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 maxChannelCount value or an exception is raised.
141 AudioDestinationNode.maxChannelCount API, AudioDestinationNode, Property, Reference, Référence(2), Web Audio API, maxChannelCount
An unsigned long .
142 AudioListener API, AudioListener, Interface, Reference, Référence(2), Web Audio API
AudioListener interface represents the position and orientation of the unique person listening to the audio scene, and is used in audio spatialization . All PannerNode s spatialize in relation to the AudioListener stored in the BaseAudioContext.listener 属性。
143 AudioListener.dopplerFactor API, Audio, AudioListener, Deprecated, Doppler, Doppler Effect, Property, Reference, Web Audio API, dopplerFactor, effects
The deprecated dopplerFactor 特性为 AudioListener interface is a double value representing the amount of pitch shift to use when rendering a doppler effect .
144 AudioListener.forwardX API, Audio, AudioListener, Property, Reference, Web Audio API, forwardX
forwardX read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the forward direction the listener is pointing in.
145 AudioListener.forwardY API, Audio, AudioListener, Property, Reference, Web Audio API, forwardY
forwardY read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the forward direction the listener is pointing in.
146 AudioListener.forwardZ API, Audio, AudioListener, Property, Reference, Web Audio API, forwardZ
forwardZ read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the forward direction the listener is pointing in.
147 AudioListener.positionX API, Audio, AudioListener, Property, Reference, Web Audio API, positionX
positionX read-only property of the AudioListener interface is an AudioParam representing the x position of the listener in 3D cartesian space.
148 AudioListener.positionY API, Audio, AudioListener, Property, Reference, Web Audio API, positionY
positionY read-only property of the AudioListener interface is an AudioParam representing the y position of the listener in 3D cartesian space.
149 AudioListener.positionZ API, Audio, AudioListener, Property, Reference, Web Audio API, positionZ
positionZ read-only property of the AudioListener interface is an AudioParam representing the z position of the listener in 3D cartesian space.
150 AudioListener.setOrientation() API, AudioListener, Method, Reference, Référence(2), Web Audio API, setOrientation
Void.
151 AudioListener.setPosition() API, AudioListener, Deprecated, Method, Reference, Référence(2), Web Audio API, setPosition
Void.
152 AudioListener.speedOfSound API, AudioListener, Deprecated, Property, Reference, Web Audio API, speedOfSound
speedOfSound 特性为 AudioListener interface is a double value representing the speed of sound, in meters per second .
153 AudioListener.upX API, Audio, AudioListener, Property, Reference, Web Audio API, upX
upX read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the up direction the listener is pointing in.
154 AudioListener.upY API, AudioListener, Property, Reference, Web Audio API, upY
upY read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the up direction the listener is pointing in.
155 AudioListener.upZ API, Audio, AudioListener, Property, Reference, Web Audio API, upZ
upZ read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the up direction the listener is pointing in.
156 AudioNode API, AudioNode, Interface, Reference, Web Audio API
AudioNode interface is a generic interface for representing an audio processing module. Examples include:
157 AudioNode.channelCount API, AudioNode, Property, Reference, Web Audio API, channelCount
channelCount 特性为 AudioNode interface represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node.
158 AudioNode.channelCountMode API, AudioNode, Property, Reference, Web Audio API, channelCountMode
The possible values of channelCountMode and their meanings are:
159 AudioNode.channelInterpretation API, AudioNode, Property, Reference, Web Audio API, channelInterpretation
When the number of channels doesn't match between an input and an output, up- or down-mixing happens according the following rules. This can be somewhat controlled by setting the AudioNode.channelInterpretation property to speakers or discrete :
160 AudioNode.connect() API, Audio, AudioNode, Media, Method, Reference, Web Audio API, connect
If the destination is a node, connect() returns a reference to the destination AudioNode object, allowing you to chain multiple connect() calls. In some browsers, older implementations of this interface return undefined .
161 AudioNode.context API, AudioNode, Context, Property, Reference, Web Audio API
The read-only context 特性为 AudioNode interface returns the associated BaseAudioContext , that is the object representing the processing graph the node is participating in.
162 AudioNode.disconnect() API, Audio, AudioNode, Disconnect, Method, Reference, Web Audio API
undefined
163 AudioNode.numberOfInputs API, AudioNode, Property, Reference, Web Audio API, numberOfInputs
numberOfInputs 特性为 AudioNode interface returns the number of inputs feeding the node.
164 AudioNode.numberOfOutputs API, AudioNode, Property, Reference, Web Audio API, numberOfOutputs
numberOfOutputs 特性为 AudioNode interface returns the number of outputs coming out of the node.
165 AudioNodeOptions API, Audio, AudioNodeOptions, Dictionary, Interface, Options, Reference, Web Audio API
AudioNodeOptions dictionary of the Web 音频 API specifies options that can be used when creating new AudioNode 对象。
166 AudioParam API, Audio, AudioParam, Interface, Parameter, Reference, Web Audio API, sound
The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (譬如 GainNode.gain ).
167 AudioParam.cancelAndHoldAtTime() API, Audio, AudioParam, Experimental, Method, Reference, Web Audio API, cancelAndHoldAtTime, cancelValuesAndHoldAtTime
cancelAndHoldAtTime() 特性为 AudioParam interface cancels all scheduled future changes to the AudioParam but holds its value at a given time until further changes are made using other methods.
168 AudioParam.cancelScheduledValues() API, AudioParam, Method, Reference, Web Audio API, cancelScheduledValues
A reference to this AudioParam object. In some older implementations this method returns void.
169 AudioParam.defaultValue API, AudioParam, Property, Reference, Web Audio API, defaultValue
defaultValue read-only property of the AudioParam interface represents the initial value of the attributes as defined by the specific AudioNode creating the AudioParam .
170 AudioParam.exponentialRampToValueAtTime() API, AudioParam, Method, Reference, Web Audio API, exponentialRampToValueAtTime
A reference to this AudioParam object. In some browsers older implementations of this interface return void.
171 AudioParam.linearRampToValueAtTime() API, Audio, AudioParam, Method, Reference, Web Audio API, linearRampToValueAtTime
A reference to this AudioParam object. In some browsers older implementations of this interface return void.
172 AudioParam.maxValue API, Audio, AudioParam, Property, Reference, Web Audio API, maxValue
maxValue read-only property of the AudioParam interface represents the maximum possible value for the parameter's nominal (effective) range.
173 AudioParam.minValue API, Audio, AudioParam, Property, Reference, Web Audio API, minValue
minValue read-only property of the AudioParam interface represents the minimum possible value for the parameter's nominal (effective) range.
174 AudioParam.setTargetAtTime() API, AudioParam, Method, Reference, Web Audio API, setTargetAtTime
setTargetAtTime() 方法源于 AudioParam interface schedules the start of a gradual change to the AudioParam value. This is useful for decay or release portions of ADSR envelopes.
175 AudioParam.setValueAtTime() API, AudioParam, Method, Reference, Web Audio API, setValueAtTime
setValueAtTime() 方法源于 AudioParam interface schedules an instant change to the AudioParam value at a precise time, as measured against AudioContext.currentTime . The new value is given in the value parameter.
176 AudioParam.setValueCurveAtTime() API, Audio, AudioParam, Method, Reference, Web, Web Audio, Web Audio API, setValueCurveAtTime
setValueCurveAtTime() 方法源于 AudioParam interface schedules the parameter's value to change following a curve defined by a list of values.
177 AudioParam.value API, AudioParam, Parameter, Property, Reference, Web Audio API, sound, value
Web Audio API's AudioParam interface property value gets or sets the value of this AudioParam at the current time.
178 AudioParamDescriptor API, Audio, AudioParamDescriptor, AudioWorkletProcessor, Dictionary, Reference, Web Audio API, parameterDescriptors
AudioParamDescriptor dictionary of the Web 音频 API specifies properties for an AudioParam 对象。
179 AudioParamMap Draft, Experimental
The Web Audio API interface AudioParamMap represents a set of multiple audio parameters, each described as a mapping of a DOMString identifying the parameter to the AudioParam object representing its value.
180 AudioProcessingEvent API, Deprecated, Interface, Internationalization, Reference, Référence(2), Web Audio API
Web 音频 API AudioProcessingEvent represents events that occur when a ScriptProcessorNode input buffer is ready to be processed.
181 AudioScheduledSourceNode API, Audio, AudioScheduledSourceNode, Interface, Media, Reference, Web Audio API, sound
AudioScheduledSourceNode interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times. Specifically, this interface defines the start() and stop() methods, as well as the onended event handler.
182 AudioScheduledSourceNode.onended API, Audio, AudioBufferSourceNode, AudioScheduledSourceNode, ConstantSourceNode, Event Handler, Media, OscillatorNode, Property, Web Audio API, onended
onended event handler for the AudioScheduledSourceNode interface specifies an EventHandler to be executed when the ended event occurs on the node. This event is sent to the node when the concrete interface (such as AudioBufferSourceNode , OscillatorNode ,或 ConstantSourceNode ) determines that it has stopped playing.
183 AudioScheduledSourceNode.start() API, Audio, AudioScheduledSourceNode, Media, Method, NeedsExample, Node, Reference, Web Audio API, play, sound, start
undefined
184 AudioScheduledSourceNode.stop() API, Audio, AudioScheduledSourceNode, Media, Method, Reference, Web Audio API, sound, stop
stop() method on AudioScheduledSourceNode schedules a sound to cease playback at the specified time. If no time is specified, then the sound stops playing immediately.
185 AudioScheduledSourceNode: ended event Audio, HTML DOM, HTMLMediaElement, Media, Media Streams API, Reference, Video, Web Audio API, ended, events
ended event of the AudioScheduledSourceNode interface is fired when the source node has stopped playing.
186 AudioTrack Audio, AudioTrack, HTML, HTML DOM, Interface, Media, Reference, track
AudioTrack interface represents a single audio track from one of the HTML media elements, <audio> or <video> .
187 AudioTrack.enabled Audio, AudioTrack, HTML DOM, Media, Media Controls, Media Track, Property, Reference, Video, enabled, mute, track
AudioTrack property enabled specifies whether or not the described audio track is currently enabled for use. If the track is disabled by setting enabled to false , the track is muted and does not produce audio.
188 AudioTrack.id API, Audio, Audio Track, AudioTrack, HTML DOM, Interface, Media, Property, Read-only, Reference, id, track
id property contains a string which uniquely identifies the track represented by the AudioTrack .
189 AudioTrack.kind API, Audio, Audio Track, AudioTrack, HTML DOM, Media, Property, Read-only, Reference, id, track
kind property contains a string indicating the category of audio contained in the AudioTrack .
190 AudioTrack.label API, Audio, Audio Track, AudioTrack, HTML DOM, Media, Property, Read-only, Reference, label, metadata, track
The read-only AudioTrack property label returns a string specifying the audio track's human-readable label, if one is available; otherwise, it returns an empty string.
191 AudioTrack.language API, Audio, AudioTrack, HTML DOM, Language, Localization, Media, Property, Read-only, Reference, Translated, Translation, track
The read-only AudioTrack property language returns a string identifying the language used in the audio track.
192 AudioTrack.sourceBuffer API, Audio, AudioTrack, HTML DOM, MSE, Media, Media Source Extensions, Property, Read-only, Reference, SourceBuffer, track
The read-only AudioTrack property sourceBuffer returns the SourceBuffer that created the track, or null if the track was not created by a SourceBuffer SourceBuffer has been removed from the MediaSource.sourceBuffers attribute of its parent media source.
193 AudioTrackList API, Audio, AudioTrackList, HTML DOM, Interface, Media, Reference, Track List, Tracks, list
AudioTrackList interface is used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack object in the list.
194 AudioTrackList.getTrackById() API, Audio, AudioTrackList, HTML DOM, Media, Method, Reference, Track ID, Track List, Tracks, getTrackById, id, track
AudioTrackList method getTrackById() returns the first AudioTrack object from the track list whose id matches the specified string.
195 AudioTrackList.length API, Audio, AudioTrackList, HTML DOM, Media, Property, Read-only, Reference, length, list, track
The read-only AudioTrackList property length returns the number of entries in the AudioTrackList , each of which is an AudioTrack representing one audio track in the media element.
196 AudioTrackList.onaddtrack API, Adding Audio Tracks, Adding Tracks, Audio, AudioTrackList, Event Handler, HTML DOM, Media, Property, Reference, addTrack, onaddtrack, track
AudioTrackList property onaddtrack is an event handler which is called when the addtrack event occurs, indicating that a new audio track has been added to the media element whose audio tracks the AudioTrackList represents.
197 AudioTrackList.onchange API, Adding Audio Tracks, Adding Tracks, Audio, AudioTrackList, Event Handler, HTML DOM, Media, Property, Reference, addTrack, onchange, track
AudioTrackList property onchange is an event handler which is called when the change event occurs, indicating that one or more of the AudioTrack s in the AudioTrackList have been enabled or disabled.
198 AudioTrackList.onremovetrack API, Audio, AudioTrackList, Event Handler, HTML DOM, Media, Property, Reference, Removing Audio Tracks, Removing Tracks, onremovetrack, remove, removeTrack, track
AudioTrackList onremovetrack event handler is called when the removetrack event occurs, indicating that an audio track has been removed from the media element, and therefore also from the AudioTrackList .
199 AudioTrackList: addtrack event Event
addtrack event is fired when a track is added to an AudioTrackList .
200 AudioTrackList: change event Event
change event is fired when an audio track is enabled or disabled, for example by changing the track's enabled 特性。
201 AudioTrackList: removetrack event Event
removetrack event is fired when a track is removed from an AudioTrackList .
202 AudioWorklet API, Audio, AudioWorklet, Experimental, Interface, Reference, Web Audio API, Worklet
AudioWorklet interface of the Web 音频 API is used to supply custom audio processing scripts. User-supplied code is run in the AudioWorkletGlobalScope global execution context in a separate Web Audio rendering thread along with other nodes, allowing for zero-latency audio processing.
203 AudioWorkletGlobalScope API, AudioWorkletGlobalScope, Experimental, Interface, Reference, Web Audio API
AudioWorkletGlobalScope interface of the Web 音频 API represents a global execution context for user-supplied code, which defines custom AudioWorkletProcessor -derived classes. Each BaseAudioContext has a single AudioWorklet available under the audioWorklet property, which runs its code in a single AudioWorkletGlobalScope .
204 AudioWorkletGlobalScope.registerProcessor API, Audio, AudioWorkletGlobalScope, AudioWorkletProcessor, Method, Reference, Web Audio API
registerProcessor 方法源于 AudioWorkletGlobalScope interface registers a class constructor derived from AudioWorkletProcessor interface under a specified name .
205 AudioWorkletNode API, Audio, AudioWorkletNode, Experimental, Interface, Reference, Web Audio API
AudioWorkletNode interface of the Web 音频 API represents a base class for a user-defined AudioNode , which can be connected to an audio routing graph along with other nodes. It has an associated AudioWorkletProcessor , which does the actual audio processing in a Web Audio rendering thread.
206 AudioWorkletNode() API, AudioWorkletNode, Constructor, Reference, Web Audio API
AudioWorkletNode() constructor creates a new AudioWorkletNode object, which represents an AudioNode with custom audio processing capabilities.
207 AudioWorkletNode.onprocessorerror API, Audio, AudioWorkletNode, AudioWorkletProcessor, Event Handler, Property, Reference, Web Audio API, onprocessorerror
onprocessorerror 特性为 AudioWorkletNode interface defines an event handler function to be called when the processorerror event fires. This occurs when the underlying AudioWorkletProcessor behind the node throws an exception in its constructor, the process method, or any user-defined class method.
208 AudioWorkletNode.parameters API, Audio, AudioParam, AudioWorkletNode, Experimental, Property, Reference, Web Audio API
The read-only parameters 特性为 AudioWorkletNode interface returns the associated AudioParamMap — that is, a Map -like collection of AudioParam objects. They are instantiated during creation of the underlying AudioWorkletProcessor according to its parameterDescriptors static getter.
209 AudioWorkletNode.port API, AudioWorkletNode, Experimental, Property, Reference, Web Audio API, port
The read-only port 特性为 AudioWorkletNode interface returns the associated MessagePort . It can be used to communicate between the node and its associated AudioWorkletProcessor .
210 AudioWorkletNodeOptions API, AudioWorkletNodeOptions, Dictionary, Reference, Web Audio API
AudioWorkletNodeOptions dictionary of the Web 音频 API is used to specify configuration options when constructing a new AudioWorkletNode object for custom audio processing.
211 AudioWorkletProcessor API, Audio, AudioWorklet, AudioWorkletProcessor, Interface, Reference, Web Audio API
AudioWorkletProcessor interface of the Web 音频 API represents an audio processing code behind a custom AudioWorkletNode . It lives in the AudioWorkletGlobalScope and runs on the Web Audio rendering thread. In turn, an AudioWorkletNode based on it runs on the main thread.
212 AudioWorkletProcessor() API, Audio, AudioWorkletNode, AudioWorkletProcessor, Constructor, Reference, Web Audio API
AudioWorkletProcessor() constructor creates a new AudioWorkletProcessor object, which represents an underlying audio processing mechanism of an AudioWorkletNode .
213 AudioWorkletProcessor.parameterDescriptors API, AudioWorkletProcessor, Experimental, Property, Reference, parameterDescriptors
The read-only parameterDescriptors property of an AudioWorkletProcessor -derived class is a static getter , which returns an iterable of AudioParamDescriptor -based objects.
214 AudioWorkletProcessor.port API, Audio, AudioWorkletProcessor, Experimental, Property, Reference, Web Audio API
The read-only port 特性为 AudioWorkletProcessor interface returns the associated MessagePort . It can be used to communicate between the processor and the AudioWorkletNode to which it belongs.
215 AudioWorkletProcessor.process API, Audio, AudioWorkletNode, AudioWorkletProcessor, Experimental, Method, Process, Reference, Web Audio API
process() method of an AudioWorkletProcessor -derived class implements the audio processing algorithm of the processor. Although the method is not a part of the AudioWorkletProcessor interface, each class that derives from it must have it implemented.
216 AuthenticatorAssertionResponse API, Authentication, AuthenticatorAssertionResponse, Interface, Reference, Web Authentication API, WebAuthn
AuthenticatorAssertionResponse interface of the Web 身份验证 API is returned by CredentialsContainer.get() when a PublicKeyCredential is passed, and provides proof to a service that it has a key pair and that the authentication request is valid and approved.
217 AuthenticatorAssertionResponse.authenticatorData API, AuthenticatorAssertionResponse, Property, Reference, Web Authentication API, WebAuthn
authenticatorData 特性为 AuthenticatorAssertionResponse interface returns an ArrayBuffer containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator.
218 AuthenticatorAssertionResponse.signature API, AuthenticatorAssertionResponse, Property, Reference, Web Authentication API, WebAuthn
signature read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object which is the signature of the authenticator for both AuthenticatorAssertionResponse.authenticatorData and a SHA-256 hash of the client data ( AuthenticatorAssertionResponse.clientDataJSON ).
219 AuthenticatorAssertionResponse.userHandle API, AuthenticatorAssertionResponse, Property, Reference, Web Authentication API, WebAuthn
userHandle read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object which is an opaque identifier for the given user. Such an identifier can be used by the relying party's server to link the user account with its corresponding credentials and other data.
220 AuthenticatorAttestationResponse API, Authentication, AuthenticatorAttestationResponse, Interface, Reference, Web Authentication API, WebAuthn
AuthenticatorAttestationResponse interface of the Web 身份验证 API is returned by CredentialsContainer.create() when a PublicKeyCredential is passed, and provides a cryptographic root of trust for the new key pair that has been generated. This response should be sent to the relying party's server to complete the creation of the credential.
221 AuthenticatorAttestationResponse.attestationObject API, AuthenticatorAttestationResponse, Property, Reference, Web Authentication API, WebAuthn
attestationObject 特性为 AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the new public key, as well as signature over the entire attestationObject with a private key that is stored in the authenticator when it is manufactured.
222 AuthenticatorAttestationResponse.getTransports() API, AuthenticatorAttestationResponse, Method, Reference, Web Authentication API, WebAuthn
getTransports() is a method of the AuthenticatorAttestationResponse interface that returns an Array containing strings describing the different transports which may be used by the authenticator.
223 AuthenticatorResponse API, Authentication, AuthenticatorResponse, Interface, Reference, Web Authentication API, WebAuthn
AuthenticatorResponse interface of the Web 身份验证 API is the base interface for interfaces that provide a cryptographic root of trust for a key pair. The child interfaces include information from the browser such as the challenge origin and either may be returned from PublicKeyCredential.response .
224 AuthenticatorResponse.clientDataJSON API, AuthenticatorResponse, Property, Reference, Web Authentication API, WebAuthn
clientDataJSON 特性为 AuthenticatorResponse interface stores a JSON string in an ArrayBuffer , representing the client data that was passed to CredentialsContainer.create() or CredentialsContainer.get() . This property is only accessed on one of the child objects of AuthenticatorResponse , specifically AuthenticatorAttestationResponse or AuthenticatorAssertionResponse .
225 Background Tasks API API, Background Tasks API, Guide, IdleDeadline, Overview, cancelIdleCallback, requestIdleCallback
Cooperative Scheduling of Background Tasks API (also referred to as the Background Tasks API or simply the requestIdleCallback() API) provides the ability to queue tasks to be executed automatically by the user agent when it determines that there is free time to do so.
226 BaseAudioContext API, Audio, BaseAudioContext, Context, Interface, Reference, Web Audio API, sound
BaseAudioContext interface of the Web 音频 API acts as a base definition for online and offline audio-processing graphs, as represented by AudioContext and OfflineAudioContext 分别。
227 BaseAudioContext.audioWorklet API, Audio, AudioContext, AudioWorklet, BaseAudioContext, Property, Reference, Web Audio API, Worklet
audioWorklet read-only property of the BaseAudioContext interface returns an instance of AudioWorklet that can be used for adding AudioWorkletProcessor -derived classes which implement custom audio processing.
228 BaseAudioContext.createAnalyser() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createAnalyser
createAnalyser() 方法源于 BaseAudioContext interface creates an AnalyserNode , which can be used to expose audio time and frequency data and create data visualisations.
229 BaseAudioContext.createBiquadFilter() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createBiquadFilter
A BiquadFilterNode .
230 BaseAudioContext.createBuffer() API, Audio, AudioContext, BaseAudioContext, Buffer, Media, Method, Reference, Web Audio, Web Audio API, createBuffer
An AudioBuffer configured based on the specified options.
231 BaseAudioContext.createBufferSource() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createBufferSource
An AudioBufferSourceNode .
232 BaseAudioContext.createChannelMerger() API, Audio, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createChannelMerger
A ChannelMergerNode .
233 BaseAudioContext.createChannelSplitter() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createChannelSplitter
A ChannelSplitterNode .
234 BaseAudioContext.createConstantSource() API, Audio, AudioContext, BaseAudioContext, ConstantSourceNode, Media, Method, createConstantSource
createConstantSource() 特性为 BaseAudioContext interface creates a ConstantSourceNode object, which is an audio source that continuously outputs a monaural (one-channel) sound signal whose samples all have the same value.
235 BaseAudioContext.createConvolver() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createConvolver
A ConvolverNode .
236 BaseAudioContext.createDelay() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createDelay
createDelay() 方法源于 BaseAudioContext Interface is used to create a DelayNode , which is used to delay the incoming audio signal by a certain amount of time.
237 BaseAudioContext.createDynamicsCompressor() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createDynamicsCompressor
Compression lowers the volume of the loudest parts of the signal and raises the volume of the softest parts. Overall, a louder, richer, and fuller sound can be achieved. It is especially important in games and musical applications where large numbers of individual sounds are played simultaneously, where you want to control the overall signal level and help avoid clipping (distorting) of the audio output.
238 BaseAudioContext.createGain() API, Audio, AudioContext, BaseAudioContext, Method, Reference, Volume Control, Web Audio API, createGain, sound
A GainNode which takes as input one or more audio sources and outputs audio whose volume has been adjusted in gain (volume) to a level specified by the node's GainNode.gain a-rate 参数。
239 BaseAudioContext.createIIRFilter() API, Audio, AudioContext, BaseAudioContext, CreateIIRFilter, Method, Reference, Web Audio API, filter
createIIRFilter() 方法源于 BaseAudioContext interface creates an IIRFilterNode , which represents a general infinite impulse response (IIR) filter which can be configured to serve as various types of filter.
240 BaseAudioContext.createOscillator() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createOscillator
createOscillator() 方法源于 BaseAudioContext interface creates an OscillatorNode , a source representing a periodic waveform. It basically generates a constant tone.
241 BaseAudioContext.createPanner() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createPanner
The panner node is spatialized in relation to the AudioContext's AudioListener (defined by the AudioContext.listener attribute), which represents the position and orientation of the person listening to the audio.
242 BaseAudioContext.createPeriodicWave() API, Audio, AudioContext, BaseAudioContext, Media, Method, Reference, Web Audio API, createPeriodicWave
createPeriodicWave() 方法源于 BaseAudioContext Interface is used to create a PeriodicWave , which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode .
243 BaseAudioContext.createScriptProcessor() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createScriptProcessor
A ScriptProcessorNode .
244 BaseAudioContext.createStereoPanner() API, AudioContext, BaseAudioContext, Media, Method, Reference, Web Audio API, createStereoPanner
A StereoPannerNode .
245 BaseAudioContext.createWaveShaper() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createWaveShaper
A WaveShaperNode .
246 BaseAudioContext.currentTime API, AudioContext, BaseAudioContext, Property, Reference, Web Audio API, currentTime
currentTime read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc. It starts at 0.
247 BaseAudioContext.decodeAudioData() API, Audio, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, decodeAudioData
This is the preferred method of creating an audio source for Web Audio API from an audio track. This method only works on complete file data, not fragments of audio file data.
248 BaseAudioContext.destination API, AudioContext, BaseAudioContext, Property, Reference, Web Audio API, destination
An AudioDestinationNode .
249 BaseAudioContext.listener API, AudioContext, BaseAudioContext, Property, Reference, Web Audio API, listener, spatialization
An AudioListener 对象。
250 BaseAudioContext.onstatechange API, Audio, AudioContext, BaseAudioContext, Event Handler, Reference, Web Audio API, onstatechange
The following snippet is taken from our AudioContext states demo ( see it running live .) The onstatechange hander is used to log the current state to the console every time it changes.
251 BaseAudioContext.sampleRate API, AudioContext, BaseAudioContext, Property, Reference, Web Audio API, sampleRate
sampleRate 特性为 BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context.
252 BaseAudioContext.state API, Audio, AudioContext, BaseAudioContext, Property, Reference, Web Audio API, state
A DOMString . Possible values are:
253 BasicCardRequest API, Basic Card Payment, BasicCardRequest, Commerce, Credit, Debit, Dictionary, Payment Method, Payment Request, Payment Request API, Reference, card, payment
BasicCardRequest dictionary is a JavaScript object-structure that can be used in the 支付请求 API . The properties of BasicCardRequest are defined in the Basic Card Payment spec ).
254 BasicCardRequest.supportedNetworks API, Basic Card Payment, BasicCardRequest, Experimental, Payment Request, Payment Request API, Property, Reference, supportedNetworks
supportedNetworks 特性为 BasicCardRequest dictionary contains an array of DOMString s representing the card networks that the retailer supports (e.g. amex , mastercard ).
255 BasicCardRequest.supportedTypes API, Basic Card Payment, BasicCardRequest, Commerce, Credit, Debit, Payment Method, Payment Request, Payment Request API, Property, Reference, payment, supportedTypes
The obsolete supportedTypes 特性为 BasicCardRequest dictionary can optionally be provided to specify an array of DOMString s representing the card types that the retailer supports (e.g. credit , debit , prepaid ).
256 BasicCardResponse API, Basic Card Payment, BasicCardResponse, Experimental, Interface, Payment Request, Payment Request API, Reference
BasicCardResponse dictionary (related to the 支付请求 API , although defined in the Basic Card Payment spec ) defines an object structure for payment response details such as the number/expiry date of the card used to make the payment, and the billing address.
257 BasicCardResponse.billingAddress API, Basic Card Payment, BasicCardResponse, Experimental, Payment Request, Payment Request API, Property, Reference, billingAddress
billingAddress 特性为 BasicCardResponse dictionary contains the billing address of the card used to make the payment.
258 BasicCardResponse.cardNumber API, Basic Card Request, BasicCardResponse, Experimental, Payment Request, Payment Request API, Property, Reference, cardNumber
cardNumber 特性为 BasicCardResponse dictionary contains the number of the card used to make the payment.
259 BasicCardResponse.cardSecurityCode API, Basic Card Payment, BasicCardResponse, Experimental, Payment Request, Payment Request API, Property, Reference, cardSecurityCode
cardSecurityCode 特性为 BasicCardResponse dictionary contains the security code of the card used to make the payment.
260 BasicCardResponse.cardholderName API, Basic Card Payment, BasicCardResponse, Payment Request, Payment Request API, Property, Reference, cardholderName
cardNumber 特性为 BasicCardResponse dictionary contains the cardholder name of the card used to make the payment.
261 BasicCardResponse.expiryMonth API, Basic Card Payment, BasicCardResponse, Experimental, Payment Request, Payment Request API, Property, Reference, expiryMonth
expiryMonth 特性为 BasicCardResponse dictionary contains the expiry month of the card used to make the payment.
262 BasicCardResponse.expiryYear API, Basic Card Payment, BasicCardResponse, Experimental, Payment Request, Payment Request API, Property, Reference, expiryYear
expiryYear 特性为 BasicCardResponse dictionary contains the expiry year of the card used to make the payment.
263 Battery Status API API, Apps, Battery, Battery API, Battery Status API, Guide, Mobile, Obsolete, Overview
Battery Status API , more often referred to as the 电池 API , provides information about the system's battery charge level and lets you be notified by events that are sent when the battery level or charging status change. This can be used to adjust your app's resource usage to reduce battery drain when the battery is low, or to save changes before the battery runs out in order to prevent data loss.
264 BatteryManager API, Battery API, Device API, Interface, Obsolete, Reference, Référence(2)
BatteryManager interface provides ways to get information about the system's battery charge level.
265 BatteryManager.charging API, Battery API, NeedsMarkupWork, Property, Reference, Référence(2)
A Boolean value indicating whether or not the device's battery is currently being charged.
266 BatteryManager.chargingTime API, Battery API, NeedsMarkupWork, Property, Reference, Référence(2)
Indicates the amount of time, in seconds, that remain until the battery is fully charged.
267 BatteryManager.dischargingTime API, Battery API, NeedsMarkupWork, Property, Reference, Référence(2)
Indicates the amount of time, in seconds, that remains until the battery is fully discharged.
268 BatteryManager.level API, Battery API, NeedsMarkupWork, Property, Reference, Référence(2)
Indicates the current battery charge level as a value between 0.0 and 1.0 .
269 BatteryManager.onchargingchange API, Battery API, Event Handler, NeedsMarkupWork, Property, Reference, Référence(2)
Specifies an event listener to receive chargingchange events. These events occur when the battery charging state is updated.
270 BatteryManager.onchargingtimechange API, Battery API, Event Handler, NeedsMarkupWork, Property, Reference, Référence(2)
Specifies an event listener to receive chargingtimechange events. These events occur when the battery chargingTime is updated.
271 BatteryManager.ondischargingtimechange API, Battery API, Event Handler, NeedsMarkupWork, Property, Reference, Référence(2)
Specifies an event listener to receive dischargingtimechange events. These events occur when the battery dischargingTime is updated.
272 BatteryManager.onlevelchange API, Battery API, Event Handler, Property, Reference
BatteryManager.onlevelchange property specifies an event listener to receive levelchange events. These events occur when the battery level is updated.
273 Beacon API Guide, Overview, Web Performance, user behavior tracker, user tracker
信标 interface is used to schedule an asynchronous and non-blocking request to a web server. Beacon requests use the HTTP POST method and requests typically do not require a response. Requests are guaranteed to be initiated before a page is unloaded and they are run to completion, without requiring a blocking request (for example XMLHttpRequest ).
274 Using the Beacon API Guide, Web Performance
信标 interface schedules an asynchronous and non-blocking request to a web server.
275 BeforeInstallPromptEvent API, BeforeInstallPromptEvent, Event, Experimental, Interface, Reference
BeforeInstallPromptEvent is fired at the Window.onbeforeinstallprompt handler before a user is prompted to "install" a web site to a home screen on mobile.
276 BeforeInstallPromptEvent.prompt() API, BeforeInstallPromptEvent, Experimental, Method, Reference, prompt
prompt() 方法源于 BeforeInstallPromptEvent interface allows a developer to show the install prompt at a time of their own choosing.
277 BeforeUnloadEvent API, Reference
beforeunload event is fired when the window, the document and its resources are about to be unloaded.
278 BiquadFilterNode API, BiquadFilterNode, Interface, Reference, Web Audio API
BiquadFilterNode interface represents a simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers.
279 BiquadFilterNode() API, Audio, BiquadFilterNode, Constructor, Media, Reference, Web Audio API
BiquadFilterNode() constructor of the Web 音频 API creates a new BiquadFilterNode object, which represents a simple low-order filter, and is created using the AudioContext.createBiquadFilter() method.
280 BiquadFilterNode.Q API, BiquadFilterNode, Property, Q, Reference, Web Audio API
An AudioParam .
281 BiquadFilterNode.detune API, BiquadFilterNode, Property, Reference, Référence(2), Web Audio API, detune
An a-rate AudioParam .
282 BiquadFilterNode.frequency API, BiquadFilterNode, Property, Reference, Web Audio API, frequency
An AudioParam .
283 BiquadFilterNode.gain API, BiquadFilterNode, Gain, Property, Reference, Référence(2), Web Audio API
An AudioParam .
284 BiquadFilterNode.getFrequencyResponse() API, Audio, BiquadFilterNode, Method, Reference, Web Audio API, filter, getFrequencyResponse
undefined
285 BiquadFilterNode.type API, BiquadFilterNode, Property, Reference, Référence(2), Type, Web Audio API
A string (enum) representing a BiquadFilterType .
286 Blob API, Blob, File, File API, Interface, Raw, Reference, data
A Blob object represents a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data. Blobs can represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob , inheriting blob functionality and expanding it to support files on the user's system.
287 Blob() API, Blob, Constructor, File API, Reference
Blob() constructor returns a new Blob object. The content of the blob consists of the concatenation of the values given in the parameter array .
288 Blob.arrayBuffer() API, ArrayBuffer, Blob, File API, Method, Reference, binary, read
arrayBuffer() method in the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer .
289 Blob.size API, Blob, Bytes, File API, Files, Property, Reference, length, size
Blob interface's size property returns the size of the Blob or File in bytes.
290 Blob.slice() API, Blob, File, File API, Method, Reference, Section, Subset, data, slice, split
Blob interface's slice() method creates and returns a new Blob object which contains data from a subset of the blob on which it's called.
291 Blob.stream() API, Blob, Change, Convert, File API, Method, ReadableStream, Reference, stream
Blob interface's stream() method returns a ReadableStream which upon reading returns the data contained within the Blob .
292 Blob.text() API, Blob, File API, Method, Reference, String, Text, Utf-8, get, read
text() method in the Blob interface returns a Promise that resolves with a string containing the contents of the blob, interpreted as UTF-8.
293 Blob.type API, Blob, DOM, File, File API, Format, MIME, MIME Type, Property, Reference, Type
type property of a Blob object returns the MIME type of the file.
294 BlobBuilder API, DOM, DOM Reference, File API, Obsolete, Reference
BlobBuilder interface provides an easy way to construct Blob objects. Just create a BlobBuilder and append chunks of data to it by calling the append() method. When you're done building your blob, call getBlob() to retrieve a Blob containing the data you sent into the blob builder.
295 BlobEvent API, Audio, Blob, Interface, Media, MediaStream Recording, MediaStream Recording API, Recording Media, Reference, Video, events
BlobEvent interface represents events associated with a Blob . These blobs are typically, but not necessarily,  associated with media content.
296 BlobEvent.BlobEvent() API, BlobEvent, Constructor, DOM, DOM Reference, Experimental, Media Stream Encoding, Reference
BlobEvent() constructor returns a newly created BlobEvent object with an associated Blob .
297 BlobEvent.data API, BlobEvent, DOM, DOM Reference, Experimental, Media Stream Recording, Property, Reference
BlobEvent.data read-only property represents a Blob associated with the event.
298 BlobEvent.timecode API, BlobEvent, Media, Media Stream Recording, Property, Reference
timecode readonlyinline property of the BlobEvent interface a DOMHighResTimeStamp indicating the difference between the timestamp of the first chunk in data, and the timestamp of the first chunk in the first BlobEvent produced by this recorder.
299 Bluetooth API, Bluetooth, Experimental, Interface, Reference, Web Bluetooth API
Bluetooth interface of the Web Bluetooth API 返回 Promise to a BluetoothDevice object with the specified options.
300 Bluetooth.requestDevice() API, Bluetooth, Method, Reference, Web Bluetooth API, requestDevice
Bluetooth.requestDevice() 方法源于 Bluetooth interface returns a Promise to a BluetoothDevice object with the specified options. If there is no chooser UI, this method returns the first device matching the criteria.
301 BluetoothAdvertisingData API, Bluetooth, BluetoothAdvertisingData, Interface, Non-standard, Obsolete, Reference, Web Bluetooth API
The BluetoothDevice interface of the Web Bluetooth API provides advertising data about a particular Bluetooth device.
302 BluetoothAdvertisingData.appearance API, Bluetooth, BluetoothAdvertisingData, Non-standard, Obsolete, Property, Reference, appearance
appearance read-only property of the BluetoothAdvertisingData interface returns one of the values defined by the org.bluetooth.characteristic.gap.appearance characteristic.
303 manufacturerData API, Bluetooth, BluetoothAdvertisingData, Non-standard, Obsolete, Property, Reference, manufacturerData
manufacturerData read-only property of the BluetoothAdvertisingData interface returns a map that relates Company Identifier Codes to ArrayBuffers .
304 rssi API, Bluetooth, BluetoothAdvertisingData, Non-standard, Obsolete, Property, Reference, rssi
rssi read-only property of the BluetoothAdvertisingData interface returns the power at which the device’s packets are being received, measured in dBm. This is used to compute the path loss as this.txPower - this.rssi .
305 serviceData API, Bluetooth, BluetoothAdvertisingData, Non-standard, Obsolete, Property, Reference, serviceData
serviceData read-only property of the BluetoothAdvertisingData interface returns a map that relates UUIDs to ArrayBuffers .
306 txPower API, Bluetooth, BluetoothAdvertisingData, Non-standard, Obsolete, Property, Reference, txPower
txPower read-only property of the BluetoothAdvertisingData interface returns the transmission power at which the device is broadcasting, measured in dBm. This is used to compute the path loss as this.txPower - this.rssi .
307 BluetoothCharacteristicProperties API, BluetoothCharacteristicProperties, Experimental, Interface, Reference, Web Bluetooth API
BluetoothCharacteristicProperties interface of the the Web Bluetooth API provides an object provides propertieds of a particular BluetoothRemoteGATTCharacteristic.
308 BluetoothDevice API, Bluetooth, BluetoothDevice, Experimental, Interface, Reference, Web Bluetooth API
The BluetoothDevice interface of the Web Bluetooth API represents a Bluetooth device inside a particular script execution environment.
309 BluetoothDevice.gatt API, BluetoothDevice, Experimental, GATT server, Property, Reference
BluetoothDevice.gatt read-only property returns a reference to the device's BluetoothRemoteGATTServer .
310 BluetoothDevice.name API, Bluetooth, BluetoothDevice, Experimental, Property, Reference, Web Bluetooth API, name
BluetoothDevice.name 只读特性返回 DOMString that provides a human-readable name for the device.
311 BluetoothDevice.paired API, Bluetooth, BluetoothDevice, Non-standard, Obsolete, Property, Reference, Web Bluetooth API
BluetoothDevice.paired 只读特性返回 Boolean value indicating whether the device is paired with the system.
312 BluetoothDevice.uuids API, BluetoothDevice, Experimental, Property, Reference, UUIDs, Web Bluetooth API
BluetoothDevice.uuids read-only property lists the UUIDs of GATT services provided by the device, that the current origin is allowed to access.
313 adData API, Bluetooth, BluetoothDevice, Non-standard, Obsolete, Property, Reference, Web Bluetooth API, adData
BluetoothDevice.adData read-only property returns instance of BluetoothAdvertisingData containing the most recent advertising data received for the device.
314 connectGATT() API, Method, Non-standard, Obsolete, Reference, Web Bluetooth API, connectGATT
The BluetoothDevice.connectGATT() method returns a Promise that resolves to an instance of BluetoothGATTRemoteServer .
315 deviceClass API, Bluetooth, BluetoothDevice, Non-standard, Obsolete, Property, Reference, Web Bluetooth API, deviceClass
BluetoothDevice.deviceClass read-only property returns a number representing the Bluetooth devices "Class of Device".
316 gattServer API, BluetoothDevice, Non-standard, Obsolete, Property, Reference, Web Bluetooth API, gattServer
BluetoothDevice.gattServer read-only property returns a reference to the device's GATT server or null if the device is disconnected.
317 id API, BluetoothDevice, Experimental, Property, Reference, Web Bluetooth API, id
BluetoothDevice.id 只读特性返回 DOMString that uniquely identifies a device.
318 productID API, Bluetooth, BluetoothDevice, Non-standard, Obsolete, Property, Reference, Web Bluetooth API, productID
BluetoothDevice.productID read-only property returns the 16-bit Product ID field in the pnp_id characteristic in the device_information service.
319 productVersion API, Bluetooth, BluetoothDevice, Non-standard, Obsolete, Property, Reference, Web Bluetooth API, productVersion
BluetoothDevice.productVersion read-only property returns the 16-bit Product Version field in the pnp_id characteristic in the device_information service.
320 vendorID API, BluetoothDevice, Non-standard, Obsolete, Property, Reference, Web Bluetooth API, vendorID
BluetoothDevice.vendorID read-only property returns the 16-bit Vendor ID field in the pnp_id characteristic in the device_information service.
321 vendorIDSource API, BluetoothDevice, Non-standard, Obsolete, Property, Reference, Web Bluetooth API, vendorIDSource
BluetoothDevice.vendorIDSource read-only property returns the Vendor ID Source field in the pnp_id characteristic in the device_information service.
322 BluetoothRemoteGATTCharacteristic API, Bluetooth, BluetoothGattCharacteristic, Experimental, Interface, Reference, Web Bluetooth API
BluetoothRemoteGattCharacteristic interface of the Web Bluetooth API represents a GATT Characteristic, which is a basic data element that provides further information about a peripheral’s service.
323 BluetoothRemoteGATTCharacteristic.getDescriptor() API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Web Bluetooth API, getDescriptor()
BluetoothRemoteGATTCharacteristic.getDescriptor() method returns a Promise that resolves to the first BluetoothGATTDescriptor for a given descriptor UUID.
324 BluetoothRemoteGATTCharacteristic.getDescriptors() API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Web Bluetooth API, getDescriptors()
BluetoothRemoteGATTCharacteristic.getDescriptors() method returns a Promise that resolves to an Array of all BluetoothGATTDescriptor objects for a given descriptor UUID.
325 BluetoothRemoteGATTCharacteristic.properties API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Web Bluetooth API, properties
BluetoothRemoteGATTCharacteristic.properties 只读特性返回 BluetoothCharacteristicProperties instance containing the properties of this characteristic.
326 BluetoothRemoteGATTCharacteristic.readValue() API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Web Bluetooth API, readValue
BluetoothRemoteGATTCharacteristic.readValue() method returns a Promise that resolves to a DataView holding a duplicate of the value property if it is available and supported. Otherwise it throws an error.
327 BluetoothRemoteGATTCharacteristic.service API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Service, Web Bluetooth API
BluetoothRemoteGATTCharacteristic.service read-only property returns the BluetoothGATTService this characteristic belongs to.
328 BluetoothRemoteGATTCharacteristic.startNotifications() API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Web Bluetooth API, startNotifications()
BluetoothRemoteGATTCharacteristic.startNotifications() method returns a Promise to the BluetoothRemoteGATTCharacteristic instance when there is an active notification on it.
329 BluetoothRemoteGATTCharacteristic.stopNotifications() API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Web Bluetooth API, stopNotifications
BluetoothRemoteGATTCharacteristic.stopNotifications() method returns a Promise to the BluetoothRemoteGATTCharacteristic instance when there is no longer an active notification on it.
330 BluetoothRemoteGATTCharacteristic.uuid API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Service, Web Bluetooth API, uuid
BluetoothRemoteGATTCharacteristic.uuid read-only property returns DOMString containing the UUID of the characteristic, for example '00002a37-0000-1000-8000-00805f9b34fb' for the Heart Rate Measurement characteristic.
331 BluetoothRemoteGATTCharacteristic.value API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Web Bluetooth API, value
BluetoothRemoteGATTCharacteristic.value read-only property returns currently cached characteristic value. This value gets updated when the value of the characteristic is read or updated via a notification or indication.
332 BluetoothRemoteGATTCharacteristic.writeValue() API, Bluetooth, BluetoothRemoteGATTCharacteristic, Experimental, Property, Reference, Web Bluetooth API, writeValue
BluetoothRemoteGATTCharacteristic.writeValue() method sets the value property to the bytes contained in an ArrayBuffer and returns a Promise .
333 BluetoothRemoteGATTDescriptor API, Bluetooth, BluetoothRemoteGATTDescriptor, Experimental, Interface, Reference, Web Bluetooth API
BluetoothRemoteGATTDescriptor interface of the Web Bluetooth API provides a GATT Descriptor, which provides further information about a characteristic’s value.
334 characteristic API, Bluetooth, BluetoothGattDescriptor, BluetoothRemoteGATTDescriptor, Experimental, Interface, Reference, Web Bluetooth API, characteristic
BluetoothRemoteGATTDescriptor.characteristic read-only property returns the BluetoothRemoteGATTCharacteristic this descriptor belongs to.
335 readValue() API, Bluetooth, BluetoothGattDescriptor, BluetoothRemoteGATTDescriptor, Experimental, Method, Reference, Web Bluetooth API, readValue()
BluetoothRemoteGATTDescriptor .readValue() method returns a Promise that resolves to an ArrayBuffer holding a duplicate  of the value property if it is available and supported. Otherwise it throws an error.
336 uuid API, Bluetooth, BluetoothRemoteGATTDescriptor, Experimental, Property, Reference, Web Bluetooth API, uuid
BluetoothRemoteGATTDescriptor.uuid read-only property returns the UUID of the characteristic descriptor, for example ' 00002902-0000-1000-8000-00805f9b34fb ' for theClient Characteristic Configuration descriptor.
337 value API, Bluetooth, BluetoothGattDescriptor, BluetoothRemoteGATTDescriptor, Experimental, Property, Reference, Web Bluetooth API, value
BluetoothRemoteGATTDescriptor .value read-only property returns an ArrayBuffer containing the currently cached descriptor value. This value gets updated when the value of the descriptor is read.
338 writeValue() API, Bluetooth, BluetoothGattDescriptor, BluetoothRemoteGATTDescriptor, Experimental, Property, Reference, Web Bluetooth API, writeValue()
BluetoothRemoteGATTDescriptor .writeValue() method sets the value property to the bytes contained in an ArrayBuffer and returns a Promise .
339 BluetoothRemoteGATTServer API, Bluetooth, BluetoothRemoteGATTServer, Experimental, Interface, Reference, Web Bluetooth API
BluetoothRemoteGATTServer interface of the Web Bluetooth API represents a GATT Server on a remote device.
340 BluetoothRemoteGATTServer.connect() API, Bluetooth, BluetoothRemoteGATTServer, Experimental, Method, Reference, Web Bluetooth API, connect()
BluetoothRemoteGATTServer.connect() method causes the script execution environment to connect to this.device .
341 BluetoothRemoteGATTServer.connected API, Bluetooth, BluetoothRemoteGATTServer, Experimental, Property, Reference, Web Bluetooth API
BluetoothRemoteGATTServer.connected read-only property returns a boolean value that returns true while this script execution environment is connected to this.device . It can be false while the user agent is physically connected.
342 BluetoothRemoteGATTServer.device API, Bluethooth, BluetoothRemoteGATTServer, Experimental, Property, Reference
BluetoothRemoteGATTServer.device read-only property returns a reference to the BluetoothDevice running the server.
343 BluetoothRemoteGATTServer.disconnect() API, Bluetooth, BluetoothRemoteGATTServer, Experimental, Method, Reference, Web Bluetooth API, disconnect()
BluetoothRemoteGATTServer.disconnect() method causes the script execution environment to disconnect from this.device .
344 BluetoothRemoteGATTServer.getPrimaryService() API, Bluetooth, BluetoothRemoteGATTServer, Experimental, Method, Reference, Web Bluetooth API, getPrimaryService()
BluetoothRemoteGATTServer.getPrimaryService() method returns a promise to the primary BluetoothGATTService offered by the bluetooth device for a specified BluetoothServiceUUID .
345 BluetoothRemoteGATTServer.getPrimaryServices() API, Bluetooth, BluetoothRemoteGATTServer, Experimental, Method, Reference, Web Bluetooth API, getPrimaryServices()
BluetoothRemoteGATTServer.getPrimaryServices() method returns a promise to a list of primary BluetoothGATTService objects offered by the bluetooth device for a specified BluetoothServiceUUID .
346 BluetoothRemoteGATTService API, Bluetooth, BluetoothGattService, BluetoothRemoteGATTService, Experimental, Interface, Reference, Web Bluetooth API
BluetoothRemoteGATTService interface of the Web Bluetooth API represents a service provided by a GATT server, including a device, a list of referenced services, and a list of the characteristics of this service.
347 device API, Bluetooth, BluetoothRemoteGATTService, Device, Experimental, Property, Reference, Web Bluetooth API
BluetoothGATTService.device read-only property returns information about a Bluetooth device through an instance of BluetoothDevice .
348 getCharacteristic() API, Bluetooth, BluetoothRemoteGATTService, Experimental, Property, Reference, Web Bluetooth API, getCharacteristic()
BluetoothGATTService.getCharacteristic() method returns a Promise to an instance of BluetoothGATTCharacteristic for a given universally unique identifier (UUID).
349 getCharacteristics() API, Bluetooth, BluetoothRemoteGATTService, Experimental, Property, Reference, Web Bluetooth API, getCharacteristics()
BluetoothGATTService.getCharacteristics() method returns a Promise to a list of BluetoothGATTCharacteristic instances for a given universally unique identifier (UUID).
350 getIncludedService() API, Bluetooth, BluetoothRemoteGATTService, Experimental, Property, Reference, Web Bluetooth API, getIncludedService
BluetoothGATTService.getIncludedService() method returns a Promise to an instance of BluetoothGATTService for a given universally unique identifier (UUID).
351 getIncludedServices() API, Bluetooth, BluetoothRemoteGATTService, Experimental, Property, Reference, Web Bluetooth API, getIncludedServices()
BluetoothGATTService.getIncludedServices() method returns a Promise to an Array of BluetoothGATTService instances for an optional universally unique identifier (UUID).
352 isPrimary API, Bluetooth, BluetoothRemoteGATTService, Experimental, Property, Reference, Web Bluetooth API, isPrimary
BluetoothGATTService.isPrimary read-only property returns a Boolean that indicates whether this is a primary service. If it is not a primary service, it is a secondary service.
353 uuid API, Bluetooth, BluetoothRemoteGATTService, Experimental, Property, Reference, Web Bluetooth API, uuid
BluetoothGATTService.uuid read-only property returns a DOMString representing the UUID of this service.
354 Body API, BODY, Experimental, Fetch, Fetch API, Interface, Reference, request
Body mixin of the 抓取 API represents the body of the response/request, allowing you to declare what its content type is and how it should be handled.
355 Body.arrayBuffer() API, ArrayBuffer, BODY, Experimental, Fetch, Method, Reference
arrayBuffer() 方法源于 Body mixin takes a Response stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer .
356 Body.blob() API, BODY, Blob, Experimental, Fetch, Method, Reference
blob() 方法源于 Body mixin takes a Response stream and reads it to completion. It returns a promise that resolves with a Blob .
357 Body.body API, BODY, Experimental, Fetch, Property, Reference, Streams
body read-only property of the Body mixin is a simple getter used to expose a ReadableStream of the body contents.
358 Body.bodyUsed API, BODY, Experimental, Fetch, Property, Reference, bodyUsed
bodyUsed read-only property of the Body mixin contains a Boolean that indicates whether the body has been read yet.
359 Body.formData() API, BODY, Experimental, Fetch, Fetch API, FormData, Method, NeedsExample, Reference
formData() 方法源于 Body mixin takes a Response stream and reads it to completion. It returns a promise that resolves with a FormData 对象。
360 Body.json() API, BODY, Experimental, Fetch, JSON, Method, Reference
json() 方法源于 Body mixin takes a Response stream and reads it to completion. It returns a promise that resolves with the result of parsing the body text as JSON .
361 Body.text() API, BODY, Experimental, Fetch, Method, Reference, Text
text() method of the Body mixin takes a Response stream and reads it to completion. It returns a promise that resolves with a USVString object (text). The response is always decoded using UTF-8.
362 广播通道 API API, Broadcast Channel API, HTML API, Overview, Reference
广播通道 API allows simple communication between browsing contexts (that is windows , tabs , frames ,或 iframes ) with the same origin (usually pages from the same site).
363 BroadcastChannel API, Broadcast Channel API, Experimental, HTML API, Interface, Reference
BroadcastChannel interface represents a named channel that any browsing context of a given origin can subscribe to. It allows communication between different documents (in different windows, tabs, frames or iframes) of the same origin. Messages are broadcasted via a message event fired at all BroadcastChannel objects listening to the channel.
364 BroadcastChannel() API, Broadcast Channel API, BroadcastChannel, Constructor, Experimental, HTML API, Reference
BroadcastChannel() constructor creates a new BroadcastChannel and connects it to the underlying channel.
365 BroadcastChannel.close() API, Broadcast Channel API, BroadcastChannel, Experimental, HTML API, Method, Reference
BroadcastChannel.close() terminates the connection to the underlying channel, allowing the object to be garbage collected. This is a necessary step to perform as there is no other way for a browser to know that this channel is not needed anymore.
366 BroadcastChannel.name Broadcast Channel API, BroadcastChannel, Experimental, HTML API, Property, Read-only, Reference
The read-only BroadcastChannel.name property returns a DOMString , which uniquely identifies the given channel with its name. This name is passed to the BroadcastChannel() constructor at creation time and is therefore read-only.
367 BroadcastChannel.onmessage API, Broadcast Channel API, BroadcastChannel, Event Handler, Experimental, HTML API, Property, Reference
BroadcastChannel.onmessage event handler is a property that specifies the function to execute when a message event, of type MessageEvent , is received by this BroadcastChannel . Such an event is sent by the browser with a message broadcasted to the channel.
368 BroadcastChannel.onmessageerror API, BroadcastChannel, Event Handler, Property, Reference, onmessageerror
onmessageerror event handler of the BroadcastChannel interface is an EventListener , called whenever an MessageEvent of type messageerror is fired on the BroadcastChannel instance — that is, when it receives a message that cannot be deserialized .
369 BroadcastChannel.postMessage() API, Broadcast Channel API, BroadcastChannel, Experimental, HTML API, Method, Reference
BroadcastChannel.postMessage() sends a message, which can be of any kind of Object , to each listener in any browsing context with the same origin . The message is transmitted as a message event targeted at each BroadcastChannel bound to the channel.
370 BroadcastChannel: message event Communication, Event, EventSource, Reference, events, message, messaging
message event is fired on a BroadcastChannel object when a message arrives on that channel.
371 BroadcastChannel: messageerror event Event
messageerror event is fired on a BroadcastChannel object when a message arrives on the channel that can't be deserialized.
372 BudgetService API, BudgetService, Interface, Reference, Web Budget API
BudgetService interface of the Web Budget API provides a programmatic interface to the user agent’s budget service. It is available in both document and worker environments.
373 BudgetService.getBudget() API, BudgetService, Method, Reference, Web Budget API, getBudget
getBudget() 特性为 BudgetService interface returns a Promise that resolves to an array of BudgetState objects indicating the expected state of the budget at times in the future.
374 BudgetService.getCost() API, BudgetService, Method, Reference, Web Budget API, getCost
getCost() 特性为 BudgetService interface returns a Promise that resolves to a double indicating the worst-case background operation cost of the provided background operation.
375 BudgetService.reserve() API, BudgetService, Method, Reference, Web Budget API, reserve
reserve() 特性为 BudgetService interface returns a Promise that resolves to a boolean indicating whether the requested budget operation can be reserved.
376 BudgetState API, BudgetState, Interface, Reference, Web Budget API
BudgetState interface of the the Web Budget API provides the amount of the user agent's processing budget at a specific point in time.
377 BudgetState.budgetAt API, BudtetState, Property, Reference, Web Budget API, budgetAt
budgetAt read-only property of the BudgetState interface returns the anticipated processing budget at the specified time.
378 BudgetState.time API, BudgetState, Property, Reference, Time, Web Budget API
time read-only property of the BudgetState interface returns a timestamp at which the budgetAt value is valid.
379 BufferSource API, Interface, JavaScript, Reference, Typed Arrays
BufferSource is a typedef used to represent objects that are either themselves an ArrayBuffer , or which are a TypedArray providing an ArrayBufferView .
380 ByteLengthQueuingStrategy API, ByteLengthqueueingStrategy, Experimental, Interface, Reference, Streams
ByteLengthQueuingStrategy interface of the the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.
381 ByteLengthQueuingStrategy.ByteLengthQueuingStrategy() API, ByteLengthQueuingStrategy, Constructor, Experimental, Reference, Streams
ByteLengthQueuingStrategy() constructor creates and returns a ByteLengthQueuingStrategy() object instance.
382 ByteLengthQueuingStrategy.size() API, ByteLengthqueueingStrategy, Experimental, Method, Reference, Streams, size
size() 方法源于 ByteLengthQueueingStrategy interface returns the given chunk’s byteLength 特性。
383 ByteString API, DOM, DOM Reference, Reference, String, WebIDL
ByteString is a UTF-8 String that corresponds to the set of all possible sequences of bytes. ByteString maps to a String when returned in JavaScript; generally, it's only used when interfacing with protocols that use bytes and strings interchangably, such as HTTP.
384 CDATASection API, CDATASection, DOM, Interface, Reference
CDATASection interface represents a CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section.
385 CSS API, CSSOM, Interface, Painting, Reference
CSS interface holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface.
386 CSS numeric factory functions API, CSS, CSS API, Houdini, Reference, factory function
CSS numeric factory functions are methods that return CSSUnitValues with the value being the numeric argument and the unit being the name of the method used.
387 CSS.RegisterProperty CSS, Houdini, Reference
Registering a custom property allows you to tell the browser how the custom property should behave; what are allowed types, whether the custom property inherits its value, and what the default value of the custom property is.
388 CSS.escape() API, CSS, CSSOM, Method, Reference, Static, escape()
CSS.escape() static method returns a CSSOMString containing the escaped string passed as parameter, mostly for use as part of a CSS selector.
389 CSS.paintWorklet (Static property) API, CSS, CSS Paint API, Experimental, Houdini, Painting, Property, Reference, Worklet, paintWorklet
paintWorklet is a static, read-only property of the CSS interface that provides access to the PaintWorklet , which programmatically generates an image where a CSS property expects a file.
390 CSS.supports() API, CSS, CSSOM, Method, Reference, supports
CSS.supports() method returns a Boolean value indicating if the browser supports a given CSS feature, or not.
391 CSS 计数器样式 CSS, CSS Counter Styles, Overview
The CSS Counter Styles module allows to define custom counter styles, which can be used for CSS list-marker and generated-content counters.
392 CSS 字体加载 API API, CSSFontLoading, Experimental, Fonts, NeedsContent, Reference
The CSS Font Loading API provides events and interfaces for dynamically loading font resources.
393 CSS Object Model (CSSOM) API, CSSOM, Overview, Reference
CSS Object Model is a set of APIs allowing the manipulation of CSS from JavaScript. It is much like the DOM, but for the CSS rather than the HTML. It allows users to read and modify CSS style dynamically.
394 Determining the dimensions of elements API, CSSOM View, Client width, Guide, Intermediate, client height, offsetHeight, offsetWidth, size of displayed content
There are several properties you can look at in order to determine the width and height of elements, and it can be tricky to determine which is the right one for your needs. This article is designed to help you make that decision. Note that all these properties are read-only. If you want to set the width and height of an element, use width and height or the overriding min-width and max-width ,和 min-height and max-height 特性。
395 Managing screen orientation API, Advanced, CSSOM View, Guide, Screen Orientation
Screen orientation is something slightly different than device orientation . Even if a device doesn't have the capacity to detect its own orientation, a screen always has one. And if a device is able to know its orientation, it's good to have the ability to control the screen orientation in order to preserve or adapt the interface of a web application.
396 Using dynamic styling information API, Beginner, CSSOM, Guide, NeedsBeginnerUpdate
The CSS Object Model (CSSOM), part of the DOM, exposes specific interfaces allowing manipulation of a wide amount of information regarding CSS. Initially defined in the DOM Level 2 Style recommendation, these interfaces forms now a specification, CSS Object Model (CSSOM) which aims at superseding it.
397 CSS Painting API API, CSS, CSS Paint API, Houdini, Painting, Reference
The CSS Painting API — part of the CSS Houdini umbrella of APIs — allows developers to write JavaScript functions that can draw directly into an element's background, border, or content.
398 Using the CSS Painting API CSS, CSS Paint API, Canvas, Houdini, Learn
The CSS Paint API is designed to enable developers to programmatically define images which can then be used anywhere a CSS image can be invoked, such as CSS background-image , border-image , mask-image , etc.
399 CSS Properties and Values API Houdini
The CSS Properties and Values API — part of the CSS Houdini umbrella of APIs — allows developers to explicitly define their css custom properties , allowing for property type checking, default values, and properties that do or do not inherit their value.
400 Using the CSS properties and values API API, CSS, CSS Properties and Values, Guide, Houdini, JavaScript, Learn
allows the registration of css custom properties , allowing for property type checking, default values, and properties that do or do not inherit their value.
401 CSS Typed Object Model API CSS Typed OM, CSS Typed Object Model API, Houdini, Reference
The CSS Typed Object Model API simplifies CSS property manipulation by exposing CSS values as typed JavaScript objects rather than strings. This not only simplifies CSS manipulation, but also lessens the negative impact on performance as compared to HTMLElement.style .
402 Using the CSS Typed Object Model CSS, CSS Typed OM, Houdini, Learn
This should get you started with understanding the CSS Typed OM. Take a look at all the CSS Typed OM interfaces to learn more.
403 CSSConditionRule API, CSSOM, Interface, Reference
An object implementing the CSSConditionRule interface represents a single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule .
404 CSSCounterStyleRule API, CSS Counter Styles, Interface, Reference
CSSCounterStyleRule interface represents an @counter-style at-rule .
405 CSSGroupingRule API, CSSOM, Interface, Reference
An object implementing the CSSGroupingRule interface represents any CSS at-rule that contains other rules nested within it.
406 CSSImageValue API, CSS Typed Object Model API, CSSImageValue, Experimental, Houdini, Interface, Reference
CSSImageValue interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image , list-style-image ,或 border-image-source
407 CSSKeyframeRule API, CSS Animations, CSSOM, Experimental, Interface, Reference
CSSKeyframeRule interface describes an object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule . It implements the CSSRule interface with a type value of 8 ( CSSRule.KEYFRAME_RULE ).
408 CSSKeyframesRule API, CSS Animations, CSSOM, Experimental, Interface, Reference
CSSKeyframesRule interface describes an object representing a complete set of keyframes for a CSS animation. It corresponds to the contents of a whole @keyframes at-rule . It implements the CSSRule interface with a type value of 7 ( CSSRule.KEYFRAMES_RULE ).
409 CSSKeywordValue API, CSS Typed Object Model API, CSSKeywordValue, Experimental, Houdini, Interface, Reference
CSSKeywordValue interface of the the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.
410 CSSKeywordValue.CSSKeywordValue() API, CSS Typed Object Model API, CSSKeywordValue, Constructor, Experimental, Houdini, Reference
CSSKeywordValue constructor creates a new CSSKeywordValue object which represents CSS keywords and other identifiers.
411 CSSKeywordValue.value API, CSS Typed Object Model API, CSSKeywordValue, Experimental, Houdini, Property, Reference, value
value 特性为 CSSKeywordValue interface returns or sets the value of the CSSKeywordValue .
412 CSSMathSum API, CSS Typed Object Model API, CSSMathSum, Experimental, Houdini, Interface, Reference
CSSMathSum interface of the CSS Typed Object Model API represents the result obtained by calling add() , sub() ,或 toSum() on CSSNumericValue .
413 CSSMathValue API, CSS Typed Object Model API, CSSMathValue, Experimental, Houdini, Interface, Reference
CSSMathValue interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.
414 CSSMathValue.operator API, CSS Typed Object Model API, CSSMathValue, Experimental, Houdini, Operator, Property, Reference
CSSMathValue.operator read-only property of the CSSMathValue interface indicates the operator that the current subtype represents. For example, if the current CSSMathValue subtype is CSSMathSum , this property will return the string "sum" .
415 CSSMatrix API, Reference
A CSSMatrix represents a homogeneous 4x4 matrix to which 2D or 3D transforms can be applied. This class was allegedly part of CSS Transitions Module Level 3 at some point, but is not present in the current Working Draft. Use DOMMatrix 代替。
416 CSSMediaRule API, CSSOM, Interface, Reference
CSSMediaRule interface represents a single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule CSSRule interface with a type value of 4 ( CSSRule.MEDIA_RULE ).
417 CSSNamespaceRule API, CSSOM, Interface, Reference
CSSNamespaceRule interface describes an object representing a single CSS @namespace at-rule . It implements the CSSRule interface, with a type value of 10 ( CSSRule.NAMESPACE_RULE ).
418 CSSNamespaceRule.namespaceURI API, CSSNamespaceRule, CSSOM, Property, Reference, namespaceURI
CSSNamespaceRule.namespaceURI 只读特性返回 DOMString containing the text of the URI of the given namespace.
419 CSSNamespaceRule.prefix API, CSSNamespaceRule, CSSOM, Property, Reference, prefix
CSSNamespaceRule.prefix 只读特性返回 DOMString with the name of the prefix associated to this namespace. If there is no such prefix, returns null .
420 CSSNumericValue API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Interface, Reference
CSSNumericValue interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
421 CSSNumericValue.add() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, add()
add() 方法源于 CSSNumericValue interface adds a supplied number to the CSSNumericValue .
422 CSSNumericValue.div() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, div()
div() 方法源于 CSSNumericValue interface divides the CSSNumericValue by the supplied value.
423 CSSNumericValue.equals() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, equals()
equals() 方法源于 CSSNumericValue interface returns a boolean indicating whether the passed value are strictly equal. To return a value of true , all passed values must be of the same type and value and must be in the same order. This allows structural equality to be tested quickly.
424 CSSNumericValue.max() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, max()
max() 方法源于 CSSNumericValue interface returns the highest value from among the values passed. The passed values must be of the same type.
425 CSSNumericValue.min() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, min()
min() 方法源于 CSSNumericValue interface returns the lowest value from among those values passed. The passed values must be of the same type.
426 CSSNumericValue.mul() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, mul()
mul() 方法源于 CSSNumericValue interface multiplies the CSSNumericValue by the supplied value.
427 CSSNumericValue.parse() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, parse()
parse() 方法源于 CSSNumericValue interface converts a value string into an object whose members are value and the units.
428 CSSNumericValue.sub() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, sub()
sub() 方法源于 CSSNumericValue interface subtracts a supplied number from the CSSNumericValue .
429 CSSNumericValue.sum() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, sum()
sub() 方法源于 CSSNumericValue interface subtracts a supplied number from the CSSNumericValue .
430 CSSNumericValue.to() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, to()
to() 方法源于 CSSNumericValue interface converts a numberic value from one unit to another.
431 CSSNumericValue.toSum() API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Method, Reference, toSum()
toSum() 方法源于 CSSNumericValue interface converts the object's value to a CSSMathSum object to values of the specified unit.
432 CSSNumericValue.type API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Property, Reference, Type
type() 方法源于 CSSNumericValue interface returns the type of CSSNumericValue , one of angle , flex , frequency , length , resolution , percent , percentHint ,或 time .
433 CSSOMString API, CSSOM, Reference
CSSOMString is used to denote string data in CSSOM specifications and can refer to either DOMString or USVString . When a specification says CSSOMString , it depends on the browser vendors to choose whether to use DOMString or USVString . While browser implementations that use UTF-8 internally to represent strings in memory can use USVString when the specification says CSSOMString , implementations that already represent strings as 16-bit sequences might choose to use DOMString 代替。
434 CSSPageRule API, CSSOM, Interface, Reference
CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 ( CSSRule.PAGE_RULE ).
435 CSSPositionValue API, CSS Typed Object Model API, CSSPositionValue, Experimental, Houdini, Interface, Reference
CSSPositionValue interface of the the CSS Typed Object Model API represents values for properties that take a position, for example object-position .
436 CSSPositionValue.CSSPositionValue() API, CSS Typed Object Model API, CSSPositionValue, Constructor, Experimental, Houdini, Reference
CSSPositionValue constructor creates a new CSSPositionValue object which represents values for properties that take a position, for example object-position .
437 CSSPositionValue.x API, CSS Typed Object Model API, CSSPositionValue, Experimental, Houdini, Property, Reference, x
x 特性为 CSSPositionValue interface returns returns the item's position along the web page's horizontal axis.
438 CSSPositionValue.y API, CSS Typed Object Model API, CSSPositionValue, Experimental, Houdini, Property, Reference, y
y 特性为 CSSPositionValue interface returns the item's position along the vertical axis.
439 CSSPrimitiveValue API, CSSPrimitiveValue, Interface, Reference
CSSPrimitiveValue interface derives from the CSSValue interface and represents the current computed value of a CSS property.
440 CSSPrimitiveValue.getCounterValue() API, CSSPrimitiveValue, Method, NeedsExample, getCounterValue
getCounterValue() 方法源于 CSSPrimitiveValue interface is used to get the counter value. If this CSS value doesn't contain a counter value, a DOMException is raised. Modification to the corresponding style property can be achieved using the Counter 接口。
441 CSSPrimitiveValue.getFloatValue() API, CSSPrimitiveValue, Method, getFloatValue
getFloatValue() 方法源于 CSSPrimitiveValue interface is used to get a float value in a specified unit. If this CSS value doesn't contain a float value or can't be converted into the specified unit, a DOMException 被引发。
442 CSSPrimitiveValue.getRGBColorValue() API, CSSPrimitiveValue, Method, getRGBColorValue
getRGBColorValue() 方法源于 CSSPrimitiveValue interface is used to get an RGB color value. If this CSS value doesn't contain a RGB color value, a DOMException is raised. Modification to the corresponding style property can be achieved using the RGBColor 接口。
443 CSSPrimitiveValue.getRectValue() API, CSSPrimitiveValue, Method, getRectValue
getRectValue() 方法源于 CSSPrimitiveValue interface is used to get a rect value. If this CSS value doesn't contain a rect value, a DOMException is raised. Modification to the corresponding style property can be achieved using the Rect 接口。
444 CSSPrimitiveValue.getStringValue() API, CSSPrimitiveValue, Method, getStringValue
getStringValue() 方法源于 CSSPrimitiveValue interface is used to get a string value. If this CSS value doesn't contain a string value, a DOMException 被引发。
445 CSSPrimitiveValue.primitiveType API, CSSPrimitiveValue, Property, Read-only, Reference, primitiveValue
primitiveType read-only property of the CSSPrimitiveValue interface represents the type of a CSS value.
446 CSSPrimitiveValue.setFloatValue() API, CSSPrimitiveValue, Method, NeedsExample, setFloatValue
setFloatValue() 方法源于 CSSPrimitiveValue interface is used to set a float value. If the property attached to this value can't accept the specified unit or the float value, the value will be unchanged and a DOMException 会被引发。
447 CSSPrimitiveValue.setStringValue() API, CSSPrimitiveValue, Method, NeedsExample, setStringValue
setStringValue() 方法源于 CSSPrimitiveValue interface is used to set a string value. If the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a DOMException 会被引发。
448 CSSPseudoElement API, CSSPseudoElement, Element, Experimental, Interface, Reference
CSSPseudoElement interface represents a pseudo-element that may be the target of an event or animated using the Web Animations API . Instances of this interface may be obtained by calling Element.pseudo() .
449 CSSPseudoElement.element API, CSSPseudoElement, Element, Experimental, Property, Reference
element read-only property of the CSSPseudoElement interface returns a reference to the originating element of the pseudo-element, in other words its parent element.
450 CSSPseudoElement.type API, CSSPseudoElement, Experimental, Property, Reference, Type
type read-only property of the CSSPseudoElement interface returns the type of the pseudo-element as a string, represented in the form of a CSS selector .
451 CSSRule API, CSSOM, Interface, Reference
CSSRule interface represents a single CSS rule. There are several types of rules, listed in the Type constants 以下章节。
452 CSSRule.cssText API, CSSOM, NeedsSpecTable, Property, Reference
cssText 特性为 CSSRule interface returns the actual text of a CSSStyleSheet style-rule.
453 CSSRule.parentStyleSheet API, CSSOM, CSSRule, NeedsSpecTable, Property, Reference
parentStyleSheet 特性为 CSSRule interface returns the StyleSheet object in which the current rule is defined.
454 CSSRuleList API, CSSOM, Interface, Reference
A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule 对象。
455 CSSStyleDeclaration API, CSSOM, CSSRule, Interface, Reference
CSSStyleDeclaration interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
456 CSSStyleDeclaration.cssText API, CSSOM, NeedsSpecTable, Reference
cssText 特性为 CSSStyleDeclaration interface returns or sets the text of the element's inline style declaration only.
457 CSSStyleDeclaration.getPropertyCSSValue() API, CSSOM, Method, Obsolete, Reference
CSSStyleDeclaration.getPropertyCSSValue() method interface returns a CSSValue containing the CSS value for a property.
458 CSSStyleDeclaration.getPropertyPriority() API, CSSOM, Method, Reference
CSSStyleDeclaration.getPropertyPriority() method interface returns a DOMString that provides all explicitly set priorities on the CSS property.
459 CSSStyleDeclaration.getPropertyValue() API, CSSOM, Method, Reference
CSSStyleDeclaration.getPropertyValue() method interface returns a DOMString containing the value of a specified CSS property.
460 CSSStyleDeclaration.item() API, CSSOM, Method, Reference
CSSStyleDeclaration.item() method interface returns a CSS property name from a CSSStyleDeclaration by index
461 CSSStyleDeclaration.length API, CSSOM, Property, Reference
The read-only property returns an integer that represents the number of style declarations in this CSS declaration block.
462 CSSStyleDeclaration.parentRule API, CSSOM, Property, Reference
CSSStyleDeclaration.parentRule 只读特性返回 CSSRule that is the parent of this style block
463 CSSStyleDeclaration.removeProperty() API, CSSOM, Method, Reference
CSSStyleDeclaration.removeProperty() method interface removes a property from a CSS style declaration object.
464 CSSStyleDeclaration.setProperty() API, CSSOM, Method, Reference
CSSStyleDeclaration.setProperty() method interface sets a new value for a property on a CSS style declaration object.
465 CSSStyleRule API, CSSOM, CSSStyleRule, Interface, Reference
CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 ( CSSRule.STYLE_RULE ).
466 CSSStyleRule.selectorText API, CSSOM, CSSStyleRule, Reference
CSSRule.selectorText property gets the textual representation of the selector for the rule set. This is readonly in some browsers; to set stylesheet rules dynamically cross-browser, see Using dynamic styling information .
467 CSSStyleRule.style API, CSSOM, NeedsSpecTable, Property, Reference
CSSRule.style property is the CSSStyleDeclaration interface for the declaration block of the CSSRule .
468 CSSStyleRule.styleMap
styleMap read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access the rule's property-value pairs.
469 CSSStyleSheet API, CSS, CSSOM, CSSOM API, CSSStyleSheet, Interface, Layout, Object Model, Reference, StyleSheet
CSSStyleSheet interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet.
470 CSSStyleSheet.addRule() API, CSS, CSSOM, CSSOM API, CSSStyleSheet, Layout, Method, Object Model, Obsolete, Reference, Style, StyleSheet, addRule, legacy, rules
The obsolete CSSStyleSheet interface's addRule() legacy method adds a new rule to the stylesheet. You should avoid using this method, and should instead use the more standard insertRule() 方法。
471 CSSStyleSheet.cssRules API, CSS, CSSOM, CSSOM API, CSSStyleSheet, Layout, Object Model, Property, Read-only, Reference, StyleSheet
The read-only CSSStyleSheet property cssRules returns a live CSSRuleList which provides a real-time, up-to-date list of every CSS rule which comprises the stylesheet.
472 CSSStyleSheet.deleteRule() API, CSS, CSSOM, CSSOM API, CSSStyleSheet, Layout, Method, Object Model, Reference, Rule, StyleSheet, delete, deleteRule, remove
CSSStyleSheet method deleteRule() removes a rule from the stylesheet object.
473 CSSStyleSheet.insertRule() API, CSSOM, CSSStyleSheet, Method, Reference
CSSStyleSheet.insertRule() method inserts a new CSS rule into the current style sheet , with some restrictions .
474 CSSStyleSheet.ownerRule @import, API, CSS, CSSOM, CSSOM API, CSSStyleSheet, Layout, Object Model, Property, Read-only, Reference, StyleSheet, import, ownerRule
The read-only CSSStyleSheet property ownerRule returns the CSSImportRule corresponding to the @import at-rule which imported the stylesheet into the document.
475 CSSStyleSheet.removeRule() API, CSS, CSSOM, CSSOM API, CSSStyleSheet, Layout, Method, Object Model, Obsolete, Reference, Rule, StyleSheet, delete, legacy, remove, removeRule
The obsolete CSSStyleSheet method removeRule() removes a rule from the stylesheet object.
476 CSSStyleSheet.rules API, CSS, CSSOM, CSSOM API, CSSStyleSheet, Layout, Object Model, Obsolete, Property, Read-only, Reference, Style, StyleSheet, legacy
rules 弃用 legacy property of the CSSStyleSheet interface. Functionally identical to the preferred cssRules property, it provides access to a live-updating list of the CSS rules comprising the stylesheet.
477 CSSStyleValue API, CSS Typed Object Model API, CSSStyleValue, Experimental, Houdini, Interface, Reference
CSSStyleValue interface of the the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API. An instance of this class may be used anywhere a string is expected.
478 CSSStyleValue.parse() API, CSS Typed Object Model API, CSSStyleValue, Experimental, Houdini, Method, Reference, parse()
parse() 方法源于 CSSStyleValue interface sets a specific CSS property to the specified values and returns the first value as a CSSStyleValue 对象。
479 CSSStyleValue.parseAll() API, CSS Typed Object Model API, CSSStyleValue, Experimental, Houdini, Method, Reference, parseAll()
parseAll() 方法源于 CSSStyleValue interface sets all occurences of a specific CSS property to the specified value and returns an array of CSSStyleValue objects, each containing one of the supplied values.
480 CSSSupportsRule API, CSSOM, Interface, Reference
CSSSupportsRule interface describes an object representing a single CSS @supports at-rule . It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 ( CSSRule.SUPPORTS_RULE ).
481 CSSUnitValue API, CSS Typed Object Model API, CSSUnitValue, Experimental, Houdini, Interface, Reference
CSSUnitValue interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue .
482 CSSUnitValue.CSSUnitValue() API, CSS Typed Object Model API, CSSUnitValue, Constructor, Experimental, Houdini, Reference
CSSUnitValue() constructor creates a new CSSUnitValue object which returns a new CSSUnitValue object which represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue .
483 CSSUnitValue.unit API, CSS Typed Object Model API, CSSUnitValue, Experimental, Houdini, Property, Reference, unit
CSSUnitValue.unit read-only property of the CSSUnitValue interface returns a USVString indicating the type of unit.
484 CSSUnitValue.value API, CSS Typed Object Model API, CSSUnitValue, Experimental, Houdini, Property, Reference, value
CSSUnitValue.value 特性为 CSSUnitValue interface returns a double indicating the number of units.
485 CSSUnparsedValue API, CSS Typed Object Model API, CSSUnparsedValue, Experimental, Houdini, Interface, NeedsExample, Reference
CSSUnparsedValue interface of the CSS Typed Object Model API represents property values that reference custom properties . It consists of a list of string fragments and variable references.
486 CSSUnparsedValue.CSSUnparsedValue() API, CSS Typed Object Model API, CSSUnparsedValue, Constructor, Experimental, Houdini, NeedsExample, Reference
CSSUnparsedValue() constructor creates a new CSSUnparsedValue object which represents property values that reference custom properties.
487 CSSUnparsedValue.entries() API, CSS Typed Object Model API, CSSUnparsedValue, Constructor, Entries, Experimental, Houdini, Method, NeedsExample, Reference
CSSUnparsedValue.entries() method returns an array of a given object's own enumerable property [key, value] pairs in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
488 CSSUnparsedValue.forEach() API, CSS Typed Object Model API, CSSUnparsedValue, Constructor, Experimental, Houdini, Method, NeedsExample, Reference, forEach()
CSSUnparsedValue.forEach() method executes a provided function once for each element of the CSSUnparsedValue .
489 CSSUnparsedValue.keys() API, CSS Typed Object Model API, CSSUnparsedValue, Constructor, Experimental, Houdini, Method, NeedsExample, Reference, keys()
CSSUnparsedValue.keys() method returns a new Array Iterator object that contains the keys for each index in the array.
490 CSSUnparsedValue.length API, CSS Typed Object Model API, CSSUnparsedValue, Constructor, Experimental, Houdini, NeedsExample, Property, Reference, length
length read-only property of the CSSUnparsedValue interface returns the number of items in the object.
491 CSSUnparsedValue.values() API, CSS Typed Object Model API, CSSUnparsedValue, Constructor, Experimental, Houdini, Method, NeedsExample, Reference, values()
CSSUnparsedValue.values() method returns a new Array Iterator object that contains the values for each index in the CSSUnparsedValue object.
492 CSSValue API, CSSValue, DOM, Interface, NeedsExample, Reference
CSSValue interface represents the current computed value of a CSS property.
493 CSSValue.cssText API, CSSValue, Property, Reference, cssText
cssText 特性为 CSSValue interface represents the current computed CSS property value.
494 CSSValue.cssValueType API, CSSValue, Property, Read-only, Reference, cssValueType
cssValueType read-only property of the CSSValue interface represents the type of the current computed CSS property value.
495 CSSValueList API, CSSValueList, DOM, Interface, Reference
CSSValueList interface derives from the CSSValue interface and provides the abstraction of an ordered collection of CSS values.
496 CSSValueList.item() API, CSSValueList, Method, Reference, item
item() 方法源于 CSSValueList interface is used to retrieve a CSSValue by ordinal index.
497 CSSValueList.length API, CSSValueList, NeedsExample, Property, Read-only, Reference, length
length read-only property of the CSSValueList interface represents the number of CSSValue s in the list. The range of valid values of the indices is 0 to length-1 包含在内。
498 CSSVariableReferenceValue API, CSS Typed Object Model API, CSSVariableReferenceValue, Experimental, Houdini, Interface, Reference
CSSVariableReferenceValue interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value. This object functionality is sometimes called a "CSS variable" and serves the same purpose as the var() function. The custom name must begin with two dashes.
499 CSSVariableReferenceValue.CSSVariableReferenceValue() API, CSS Typed Object Model API, CSSVariableReferenceValue, Constructor, Houdini, NeedsExample, Reference
CSSVariableReferenceValue interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value. This object functionality is sometimes called a "CSS variable" and serves the same purpose as the var() function. The custom name must begin with two dashes.
500 CSSVariableReferenceValue.fallback API, CSS Typed Object Model API, CSSVariableReferenceValue, Houdini, NeedsExample, Property, Reference, fallback
fallback read-only property of the CSSVariableReferenceValue interface returns a custom name for a built-in CSS value.
501 CSSVariableReferenceValue.variable API, CSS Typed Object Model API, CSSVariableReferenceValue, Houdini, NeedsExample, Property, Reference, variable
variable 特性为 CSSVariableReferenceValue interface a built-in CSS value to be returned by the custom name.
502 Cache API, Cache, Cache API, Experimental, Interface, Offline, Reference, Service Workers, Service worker API, Storage
Cache interface provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
503 Cache.add() API, Cache, Experimental, Method, Reference, Service Workers, Service worker API, ServiceWorker
add() 方法源于 Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.
504 Cache.addAll() API, Cache, Experimental, Method, NeedsExample, Reference, Service Workers, Service worker API, ServiceWorker, addAll
addAll() 方法源于 Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. The request objects created during retrieval become keys to the stored response operations.
505 Cache.delete() API, Cache, Experimental, Method, NeedsContent, NeedsExample, Reference, Service Workers, ServiceWorker, delete
delete() 方法源于 Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true . If no Cache entry is found, it resolves to false .
506 Cache.keys() API, Cache, Experimental, Method, Reference, Service Workers, ServiceWorker, keys
keys() 方法源于 Cache interface returns a Promise that resolves to an array of Cache keys.
507 Cache.match() API, Cache, Experimental, Method, Reference, Service Workers, Service worker API, ServiceWorker, match
match() 方法源于 Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object. If no match is found, the Promise resolves to undefined .
508 Cache.matchAll() API, Cache, Experimental, Method, Reference, Service Workers, ServiceWorker, matchAll
matchAll() 方法源于 Cache interface returns a Promise that resolves to an array of all matching responses in the Cache 对象。
509 Cache.put() API, Cache, Experimental, Method, NeedsExample, Reference, Service Workers, Service worker API, ServiceWorker, put
put() 方法源于 Cache interface allows key/value pairs to be added to the current Cache 对象。
510 CacheStorage API, CacheStorage, Experimental, Interface, Reference, Service Workers, ServiceWorker
CacheStorage interface represents the storage for Cache 对象。
511 CacheStorage.delete() API, CacheStorage, Experimental, Method, Reference, Service Workers, ServiceWorker, delete
delete () 方法源于 CacheStorage interface finds the Cache object matching the cacheName , and if found, deletes the Cache object and returns a Promise that resolves to true . If no Cache object is found, it returns false .
512 CacheStorage.has() API, CacheStorage, Experimental, Method, Reference, Service Workers, ServiceWorker, has
has() 方法源于 CacheStorage interface returns a Promise that resolves to true if a Cache object matches the cacheName .
513 CacheStorage.keys() API, CacheStorage, Experimental, Method, Reference, Service Workers, Service worker API, ServiceWorker, keys
keys () 方法源于 CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created. Use this method to iterate over a list of all Cache 对象。
514 CacheStorage.match() API, CacheStorage, Experimental, Method, Reference, Service Workers, Service worker API, ServiceWorker, match
match() 方法源于 CacheStorage interface (available globally as caches ) checks if a given Request or url string is a key for a stored Response . This method returns a Promise for a Response ,或 undefined if no match is found.
515 CacheStorage.open() API, CacheStorage, Experimental, Method, Reference, Service Workers, Service worker API, ServiceWorker, open
open() 方法源于 CacheStorage interface returns a Promise that resolves to the Cache object matching the cacheName .
516 画布 API API, Canvas, JavaScript, Overview, Reference
画布 API provides a means for drawing graphics via JavaScript HTML <canvas> element. Among other things, it can be used for animation, game graphics, data visualization, photo manipulation, and real-time video processing.
517 A basic ray-caster Advanced, Canvas, Example, Graphics, HTML, Web
518 Canvas tutorial Canvas, Graphics, Guide, HTML, HTML5, Intermediate, Web
This tutorial describes how to use the <canvas> element to draw 2D graphics, starting with the basics. The examples provided should give you some clear ideas what you can do with canvas, and will provide code snippets that may get you started in building your own content.
519 Advanced animations Canvas, Graphics, Tutorial
We are going to use a ball for our animation studies, so let's first draw that ball onto the canvas. The following code will set us up.
520 Applying styles and colors Canvas, Graphics, HTML, HTML5, Intermediate, Tutorial
Up until now we have only seen methods of the drawing context. If we want to apply colors to a shape, there are two important properties we can use: fillStyle and strokeStyle .
521 Basic animations Canvas, Graphics, HTML, HTML5, Intermediate, Tutorial
Probably the biggest limitation is, that once a shape gets drawn, it stays that way. If we need to move it we have to redraw it and everything that was drawn before it. It takes a lot of time to redraw complex frames and the performance depends highly on the speed of the computer it's running on.
522 Basic usage of canvas Canvas, Graphics, HTML, Intermediate, Tutorial
At first sight a <canvas> looks like the <img> element, with the only clear difference being that it doesn't have the src and alt attributes. Indeed, the <canvas> element has only two attributes, width and height . These are both optional and can also be set using DOM properties . When no width and height attributes are specified, the canvas will initially be 300 pixels wide and 150 pixels high. The element can be sized arbitrarily by CSS , but during rendering the image is scaled to fit its layout size: if the CSS sizing doesn't respect the ratio of the initial canvas, it will appear distorted.
523 Compositing and clipping Canvas, Graphics, HTML, HTML5, Intermediate, Tutorial
We can not only draw new shapes behind existing shapes but we can also use it to mask off certain areas, clear sections from the canvas (not limited to rectangles like the clearRect() method does) and more.
524 Compositing example Canvas, Example, Graphics, HTML, HTML5, Tutorial
This sample program demonstrates a number of compositing operations . The output looks like this:
525 Drawing shapes with canvas Canvas, Graphics, HTML, HTML Canvas, HTML5, Intermediate, Tutorial
Before we can start drawing, we need to talk about the canvas grid or coordinate space . Our HTML skeleton from the previous page had a canvas element 150 pixels wide and 150 pixels high. To the right, you see this canvas with the default grid overlayed. Normally 1 unit in the grid corresponds to 1 pixel on the canvas. The origin of this grid is positioned in the top left corner at coordinate (0,0). All elements are placed relative to this origin. So the position of the top left corner of the blue square becomes x pixels from the left and y pixels from the top, at coordinate (x,y). Later in this tutorial we'll see how we can translate the origin to a different position, rotate the grid and even scale it, but for now we'll stick to the default.
526 Drawing text Canvas, Graphics, Intermediate, Tutorial
The canvas rendering context provides two methods to render text:
527 Finale Canvas, Graphics, Tutorial
There are a variety of demos and further explanations about canvas on these sites:
528 Hit regions and accessibility Canvas, Graphics, Tutorial
The content inside the <canvas> ... </canvas> tags can be used as a fallback for browsers which don't support canvas rendering. It's also very useful for assistive technology users (like screen readers) which can read and interpret the sub DOM in it. A good example at html5accessibility.com demonstrates how this can be done:
529 Optimizing canvas Advanced, Canvas, Graphics, HTML, HTML5, Tutorial
This article provides suggestions for optimizing your use of the canvas element to ensure that your graphics perform well.
530 Pixel manipulation with canvas Canvas, Graphics, Intermediate, Tutorial
ImageData object represents the underlying pixel data of an area of a canvas object. It contains the following read-only attributes:
531 Transformations Canvas, Graphics, Guide, HTML, HTML5, Intermediate, Web
Before we look at the transformation methods, let's look at two other methods which are indispensable once you start generating ever more complex drawings.
532 Using images Advanced, Canvas, Graphics, HTML, Tutorial
Importing images into a canvas is basically a two step process:
533 Manipulating video using canvas API, Canvas, Chroma-Key, Editing, Guide, Manipulating, Video, effects
534 CanvasCaptureMediaStreamTrack CanvasCaptureMediaStreamTrack, Experimental, Frame Capture, Interface, Media, Media Capture, Reference, Web
CanvasCaptureMediaStreamTrack interface represents the video track contained in a MediaStream being generated from a <canvas> following a call to HTMLCanvasElement.captureStream() .
535 CanvasCaptureMediaStreamTrack.canvas Canvas, CanvasCaptureMediaStreamTrack, Experimental, Frame Capture, Media Capture, Property, Read-only, Reference, Web
CanvasCaptureMediaStreamTrack canvas read-only property returns the HTMLCanvasElement from which frames are being captured.
536 CanvasCaptureMediaStreamTrack.requestFrame() Canvas, CanvasCaptureMediaStream, DOM, Experimental, Frame Capture, Media, Method, Reference, requestFrame
CanvasCaptureMediaStreamTrack method requestFrame() requests that a frame be captured from the canvas and sent to the stream.
537 CanvasGradient API, Canvas, CanvasGradient, Gradients, Interface, Reference
CanvasGradient interface represents an opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient() .
538 CanvasGradient.addColorStop() API, Canvas, CanvasGradient, Gradients, Method, Reference
CanvasGradient .addColorStop() method adds a new color stop, defined by an offset color , to a given canvas gradient.
539 CanvasImageSource API, Canvas, Helper, Reference
CanvasImageSource provides a mechanism for other interfaces to be used as image sources for some methods of the CanvasDrawImage and CanvasFillStrokeStyles interfaces. It’s just an internal helper type to simplify the specification. It’s not an interface and there are no objects implementing it.
540 CanvasPattern API, Canvas, Interface, Reference
CanvasPattern interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() 方法。
541 CanvasPattern.setTransform() API, Canvas, CanvasPattern, Experimental, Method, Reference
CanvasPattern .setTransform() method uses an SVGMatrix object as the pattern's transformation matrix and invokes it on the pattern.
542 CanvasRenderingContext2D API, Canvas, CanvasRenderingContext2D, Games, Graphics, Reference
CanvasRenderingContext2D interface, part of the 画布 API , provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects.
543 CanvasRenderingContext2D.addHitRegion() API, Canvas, CanvasRenderingContext2D, Experimental, Method, Reference
CanvasRenderingContext2D method addHitRegion() adds a hit region to the bitmap.
544 CanvasRenderingContext2D.arc() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .arc() 方法源于 Canvas 2D API adds a circular arc to the current sub-path.
545 CanvasRenderingContext2D.arcTo() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .arcTo() method of the Canvas 2D API adds a circular arc to the current sub-path, using the given control points and radius. The arc is automatically connected to the path's latest point with a straight line, if necessary for the specified parameters.
546 CanvasRenderingContext2D.beginPath() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .beginPath() method of the Canvas 2D API starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path.
547 CanvasRenderingContext2D.bezierCurveTo() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .bezierCurveTo() method of the Canvas 2D API adds a cubic Bézier curve to the current sub-path. It requires three points: the first two are control points and the third one is the end point. The starting point is the latest point in the current path, which can be changed using moveTo() before creating the Bézier curve.
548 CanvasRenderingContext2D.canvas API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D.canvas property, part of the 画布 API , is a read-only reference to the HTMLCanvasElement object that is associated with a given context. It might be null if there is no associated <canvas> 元素。
549 CanvasRenderingContext2D.clearHitRegions() API, Canvas, CanvasRenderingContext2D, Experimental, Method, Reference
CanvasRenderingContext2D method clearHitRegions() removes all hit regions from the canvas.
550 CanvasRenderingContext2D.clearRect() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .clearRect() method of the Canvas 2D API erases the pixels in a rectangular area by setting them to transparent black.
551 CanvasRenderingContext2D.clip() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .clip() method of the Canvas 2D API turns the current or given path into the current clipping region. It replaces any previous clipping region.
552 CanvasRenderingContext2D.closePath() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .closePath() method of the Canvas 2D API attempts to add a straight line from the current point to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing.
553 CanvasRenderingContext2D.createImageData() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions. All of the pixels in the new object are transparent black.
554 CanvasRenderingContext2D.createLinearGradient() API, Canvas, CanvasRenderingContext2D, Gradients, Method, Reference
CanvasRenderingContext2D .createLinearGradient() method of the Canvas 2D API creates a gradient along the line connecting two given coordinates.
555 CanvasRenderingContext2D.createPattern() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .createPattern() method of the Canvas 2D API creates a pattern using the specified image and repetition. This method returns a CanvasPattern .
556 CanvasRenderingContext2D.createRadialGradient() API, Canvas, CanvasRenderingContext2D, Gradients, Method, Reference
CanvasRenderingContext2D .createRadialGradient() method of the Canvas 2D API creates a radial gradient using the size and coordinates of two circles.
557 CanvasRenderingContext2D.currentTransform API, Canvas, CanvasRenderingContext2D, Experimental, Property, Reference
CanvasRenderingContext2D .currentTransform property of the Canvas 2D API returns or sets a DOMMatrix (current specification) or SVGMatrix (old specification) object for the current transformation matrix.
558 CanvasRenderingContext2D.direction API, Canvas, CanvasRenderingContext2D, Experimental, Property, Reference
CanvasRenderingContext2D .direction property of the Canvas 2D API specifies the current text direction used to draw text.
559 CanvasRenderingContext2D.drawFocusIfNeeded() API, Accessibility, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.
560 CanvasRenderingContext2D.drawImage() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.
561 CanvasRenderingContext2D.drawWidgetAsOnScreen() API, Canvas, CanvasRenderingContext2D, Method, Non-standard, Reference
The non-standard and internal only CanvasRenderingContext2D.drawWidgetAsOnScreen() method of the Canvas 2D API renders the root widget of a window into the canvas. Unlike drawWindow() , this API uses the operating system to snapshot the widget on-screen, rather than reading from Gecko's own compositor.
562 CanvasRenderingContext2D.drawWindow() API, Canvas, CanvasRenderingContext2D, Method, Non-standard, Reference
The non-standard and internal only CanvasRenderingContext2D .drawWindow() method of the Canvas 2D API renders a region of a window into the canvas . The contents of the window's viewport are rendered, ignoring viewport clipping and scrolling.
563 CanvasRenderingContext2D.ellipse() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.
564 CanvasRenderingContext2D.fill() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .fill() method of the Canvas 2D API fills the current or given path with the current fillStyle .
565 CanvasRenderingContext2D.fillRect() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .fillRect() method of the Canvas 2D API draws a rectangle that is filled according to the current fillStyle .
566 CanvasRenderingContext2D.fillStyle API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .fillStyle 特性为 Canvas 2D API specifies the color, gradient, or pattern to use inside shapes. The default style is #000 (black).
567 CanvasRenderingContext2D.fillText() API, Canvas, CanvasRenderingContext2D, Draw String, Draw Text, Drawing Strings, Drawing Text, Fill Text, Filling Text, Method, Reference, Text, fillText
CanvasRenderingContext2D method fillText() , part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle . An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.
568 CanvasRenderingContext2D.filter API, Canvas, CanvasRenderingContext2D, Experimental, Property
CanvasRenderingContext2D .filter property of the Canvas 2D API provides filter effects such as blurring and grayscaling. It is similar to the CSS filter property and accepts the same values.
569 CanvasRenderingContext2D.font API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .font property of the Canvas 2D API specifies the current text style to use when drawing text. This string uses the same syntax as the CSS font specifier.
570 CanvasRenderingContext2D.getImageData() API, Canvas, Canvas API, CanvasRenderingContext2D, Cut, Graphics, Image, ImageData, Method, Reference, copy, getImageData, img
CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.
571 CanvasRenderingContext2D.getLineDash() API, Canvas, CanvasRenderingContext2D, Method, Reference
getLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface gets the current line dash pattern.
572 CanvasRenderingContext2D.getTransform() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .getTransform() method of the Canvas 2D API retrieves the current transformation matrix being applied to the context.
573 CanvasRenderingContext2D.globalAlpha API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .globalAlpha property of the Canvas 2D API specifies the alpha (transparency) value that is applied to shapes and images before they are drawn onto the canvas.
574 CanvasRenderingContext2D.globalCompositeOperation API, Blending, Canvas, CanvasRenderingContext2D, Compositing, Property, Reference
CanvasRenderingContext2D .globalCompositeOperation property of the Canvas 2D API sets the type of compositing operation to apply when drawing new shapes.
575 CanvasRenderingContext2D.imageSmoothingEnabled API, Canvas, CanvasRenderingContext2D, Property, Reference
imageSmoothingEnabled 特性为 CanvasRenderingContext2D interface, part of the 画布 API , determines whether scaled images are smoothed ( true , default) or not ( false ). On getting the imageSmoothingEnabled property, the last value it was set to is returned.
576 CanvasRenderingContext2D.imageSmoothingQuality API, Canvas, CanvasRenderingContext2D, Experimental, Property, Reference, imageSmoothingQuality
imageSmoothingQuality 特性为 CanvasRenderingContext2D interface, part of the 画布 API , lets you set the quality of image smoothing.
577 CanvasRenderingContext2D.isPointInPath() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .isPointInPath() method of the Canvas 2D API reports whether or not the specified point is contained in the current path.
578 CanvasRenderingContext2D.isPointInStroke() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .isPointInStroke() method of the Canvas 2D API reports whether or not the specified point is inside the area contained by the stroking of a path.
579 CanvasRenderingContext2D.lineCap API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .lineCap property of the Canvas 2D API determines the shape used to draw the end points of lines.
580 CanvasRenderingContext2D.lineDashOffset API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .lineDashOffset property of the Canvas 2D API sets the line dash offset, or "phase."
581 CanvasRenderingContext2D.lineJoin API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .lineJoin property of the Canvas 2D API determines the shape used to join two line segments where they meet.
582 CanvasRenderingContext2D.lineTo() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D method lineTo() , part of the Canvas 2D API, adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.
583 CanvasRenderingContext2D.lineWidth API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .lineWidth property of the Canvas 2D API sets the thickness of lines.
584 CanvasRenderingContext2D.measureText() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .measureText() method returns a TextMetrics object that contains information about the measured text (such as its width, for example).
585 CanvasRenderingContext2D.miterLimit API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D.miterLimit property of the Canvas 2D API sets the miter limit ratio.
586 CanvasRenderingContext2D.moveTo() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .moveTo() method of the Canvas 2D API begins a new sub-path at the point specified by the given (x, y) coordinates.
587 CanvasRenderingContext2D.putImageData() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas. If a dirty rectangle is provided, only the pixels from that rectangle are painted. This method is not affected by the canvas transformation matrix.
588 CanvasRenderingContext2D.quadraticCurveTo() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .quadraticCurveTo() method of the Canvas 2D API adds a quadratic Bézier curve to the current sub-path. It requires two points: the first one is a control point and the second one is the end point. The starting point is the latest point in the current path, which can be changed using moveTo() before creating the quadratic Bézier curve.
589 CanvasRenderingContext2D.rect() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .rect() method of the Canvas 2D API adds a rectangle to the current path.
590 CanvasRenderingContext2D.removeHitRegion() API, Canvas, CanvasRenderingContext2D, Experimental, Method, Reference
CanvasRenderingContext2D method removeHitRegion() removes a given hit region from the canvas.
591 CanvasRenderingContext2D.resetTransform() Canvas, CanvasRenderingContext2D, Experimental, Method, Reference
CanvasRenderingContext2D .resetTransform() method of the Canvas 2D API resets the current transform to the identity matrix.
592 CanvasRenderingContext2D.restore() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .restore() method of the Canvas 2D API restores the most recently saved canvas state by popping the top entry in the drawing state stack. If there is no saved state, this method does nothing.
593 CanvasRenderingContext2D.rotate() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .rotate() method of the Canvas 2D API adds a rotation to the transformation matrix.
594 CanvasRenderingContext2D.save() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .save() method of the Canvas 2D API saves the entire state of the canvas by pushing the current state onto a stack.
595 CanvasRenderingContext2D.scale() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .scale() method of the Canvas 2D API adds a scaling transformation to the canvas units horizontally and/or vertically.
596 CanvasRenderingContext2D.scrollPathIntoView() API, Canvas, CanvasRenderingContext2D, Experimental, Method, Reference
CanvasRenderingContext2D .scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view. It is similar to Element.scrollIntoView() .
597 CanvasRenderingContext2D.setLineDash() API, Canvas, CanvasRenderingContext2D, Dashes, LInes, Method, Reference, patterns, setLineDash
setLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface sets the line dash pattern used when stroking lines. It uses an array of values that specify alternating lengths of lines and gaps which describe the pattern.
598 CanvasRenderingContext2D.setTransform() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method. This lets you scale, rotate, translate (move), and skew the context.
599 CanvasRenderingContext2D.shadowBlur API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .shadowBlur property of the Canvas 2D API specifies the amount of blur applied to shadows. The default is 0 (no blur).
600 CanvasRenderingContext2D.shadowColor API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .shadowColor property of the Canvas 2D API specifies the color of shadows.
601 CanvasRenderingContext2D.shadowOffsetX API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .shadowOffsetX property of the Canvas 2D API specifies the distance that shadows will be offset horizontally.
602 CanvasRenderingContext2D.shadowOffsetY API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .shadowOffsetY property of the Canvas 2D API specifies the distance that shadows will be offset vertically.
603 CanvasRenderingContext2D.stroke() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.
604 CanvasRenderingContext2D.strokeRect() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .strokeRect() method of the Canvas 2D API draws a rectangle that is stroked (outlined) according to the current strokeStyle and other context settings.
605 CanvasRenderingContext2D.strokeStyle API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D.strokeStyle property of the Canvas 2D API specifies the color, gradient, or pattern to use for the strokes (outlines) around shapes. The default is #000 (black).
606 CanvasRenderingContext2D.strokeText() API, Canvas, CanvasRenderingContext2D, Draw String, Draw Text, Drawing Strings, Drawing Text, Method, Reference, Stroke String, Stroking Text, strokeText
CanvasRenderingContext2D method strokeText() , part of the Canvas 2D API, strokes — that is, draws the outlines of — the characters of a text string at the specified coordinates. An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.
607 CanvasRenderingContext2D.textAlign API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .textAlign property of the Canvas 2D API specifies the current text alignment used when drawing text.
608 CanvasRenderingContext2D.textBaseline API, Canvas, CanvasRenderingContext2D, Property, Reference
CanvasRenderingContext2D .textBaseline property of the Canvas 2D API specifies the current text baseline used when drawing text.
609 CanvasRenderingContext2D.transform() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .transform() method of the Canvas 2D API multiplies the current transformation with the matrix described by the arguments of this method. This lets you scale, rotate, translate (move), and skew the context.
610 CanvasRenderingContext2D.translate() API, Canvas, CanvasRenderingContext2D, Method, Reference
CanvasRenderingContext2D .translate() method of the Canvas 2D API adds a translation transformation to the current matrix.
611 CaretPosition API, CSSOM View, Experimental, Interface, Reference
CaretPosition interface represents the caret position, an indicator for the text insertion point. You can get a CaretPosition 使用 document.caretPositionFromPoint 方法。
612 通道消息 API API, Channel messaging, HTML API, Overview, Reference
通道消息 API 允许 2 个单独脚本在附加到同一文档的不同浏览上下文中运行 (如:2 个 IFrame、或主文档和 IFrame,2 个文档凭借 SharedWorker ,或 2 个工作者) 通过 2 端带有端口的双向通道 (或管道) 在彼此之间直接通信,传递消息。
613 Using channel messaging API, Channel messaging, HTML5, MessageChannel, MessagePort, Tutorial
通道消息 API allows two separate scripts running in different browsing contexts attached to the same document (e.g., two IFrames, or the main document and an IFrame, or two documents via a SharedWorker ) to communicate directly, passing messages between one another through two-way channels (or pipes) with a port at each end.
614 ChannelMergerNode API, ChannelMergerNode, Interface, Reference, Web Audio API
ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode , reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.
615 ChannelMergerNode() API, Audio, ChannelMergerNode, Constructor, Reference, Web Audio API
ChannelMergerNode() constructor creates a new ChannelMergerNode object instance.
616 ChannelSplitterNode API, Audio, ChannelSplitterNode, Interface, Reference, Splitter, Web Audio, Web Audio API
ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode , separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.
617 ChannelSplitterNode.ChannelSplitterNode() API, Audio, ChannelSplitterNode, Constructor, Reference, Splitter, Web Audio, Web Audio API
ChannelSplitterNode() constructor of the Web 音频 API creates a new ChannelSplitterNode object instance, representing a node that splits the input into a separate output for each of the source node's audio channels.
618 CharacterData API, DOM
CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData : it is implemented by other interfaces, like Text , Comment ,或 ProcessingInstruction which aren't abstract.
619 ChildNode API, DOM, Experimental, Interface, Node
ChildNode interface contains methods that are particular to Node objects that can have a parent.
620 ChildNode.after() API, DOM, Experimental, Method, Node, Reference
ChildNode.after() method inserts a set of Node or DOMString objects in the children list of this ChildNode 's parent, just after this ChildNode . DOMString objects are inserted as equivalent Text nodes.
621 ChildNode.before() API, DOM, Experimental, Method, Node, Reference
ChildNode.before() method inserts a set of Node or DOMString objects in the children list of this ChildNode 's parent, just before this ChildNode . DOMString objects are inserted as equivalent Text nodes.
622 ChildNode.remove() API, ChildNode, DOM, Experimental, Method
ChildNode.remove() method removes the object from the tree it belongs to.
623 ChildNode.replaceWith() API, DOM, Experimental, Method, Node, Reference
ChildNode.replaceWith() method replaces this ChildNode in the children list of its parent with a set of Node or DOMString 对象。 DOMString objects are inserted as equivalent Text nodes.
624 Client API, Client, Experimental, Interface, Reference, Service Workers, Service worker API, ServiceWorkerClient, ServiceWorkers
Client interface represents an executable context such as a Worker ,或 SharedWorker . Window clients are represented by the more-specific WindowClient . You can get Client / WindowClient objects from methods such as Clients.matchAll() and Clients.get() .
625 Client.frameType API, Client, Experimental, NeedsExample, Property, Reference, Service Workers, ServiceWorker, frameType
frameType read-only property of the Client interface indicates the type of browsing context of the current Client . This value can be one of auxiliary , top-level , nested ,或 none .
626 Client.id API, Client, Experimental, NeedsExample, Property, Reference, Service Workers, ServiceWorker, id
id read-only property of the Client interface returns the universally unique identifier of the Client 对象。
627 Client.postMessage() API, Client, Experimental, Method, Reference, Service Workers, Service worker API, ServiceWorker, postMessage
postMessage() method of Client allows a service worker to send a message to a client (a Window , Worker ,或 SharedWorker ). The message is received in the " message " event on navigator.serviceWorker .
628 Client.type API, Client, Property, Reference, Service Workers, Type
type read-only property of the Client interface indicates the type of client the service worker is controlling.
629 Client.url API, Client, Experimental, Property, Reference, Service Workers, URL
url read-only property of the Client interface returns the URL of the current service worker client.
630 Clients API, Clients, Experimental, Interface, Reference, Service Workers, Service worker API, ServiceWorker, Workers
Clients interface provides access to Client objects. Access it via self .clients within a service worker .
631 Clients.claim() API, Clients, Experimental, Method, Reference, Service Workers, ServiceWorker, claim
claim() 方法源于 Clients allows an active service worker to set itself as the controller for all clients within its scope . This triggers a " controllerchange " event on navigator.serviceWorker in any clients that become controlled by this service worker.
632 Clients.get() API, Clients, Experimental, Method, Reference, Service Workers, get
get () 方法源于 Clients interface gets a service worker client matching a given id and returns it in a Promise .
633 Clients.matchAll() API, Clients, Experimental, Method, Reference, Service Workers, ServiceWorker
matchAll() 方法源于 Clients interface returns a Promise for a list of service worker Client objects. Include the options parameter to return all service worker clients whose origin is the same as the associated service worker's origin. If options are not included, the method returns only the service worker clients controlled by the service worker.
634 Clients.openWindow() API, Clients, Experimental, Method, Reference, Service Workers, ServiceWorker, openWindow
openWindow() 方法源于 Clients interface creates a new top level browsing context and loads a given URL. If the calling script doesn't have permission to show popups, openWindow() will throw an InvalidAccessError.
635 Clipboard API, Clip, Clipboard, Clipboard API, Cut, Editing, Interface, Pasteboard, Reference, copy, paste
Clipboard interface implements the Clipboard API , providing—if the user grants permission—both read and write access to the contents of the system clipboard.
636 Clipboard.read() API, Clip, Clipboard, Clipboard API, Editing, Method, Reference, Scrap, Text, paste, read
read() 方法源于 Clipboard interface requests a copy of the clipboard's contents, delivering the data to the returned Promise when the promise is resolved. Unlike readText() read() method can return arbitrary data, such as images.
637 Clipboard.readText() API, Async Clipboard API, Clip, Clipboard, Clipboard API, Cut, Editing, Method, Pasteboard, Reference, Text, copy, paste, readText
Clipboard interface's readText() method returns a Promise which resolves with a copy of the textual contents of the system clipboard.
638 Clipboard.write() API, Clip, Clipboard, Clipboard API, Cut, Method, Pasteboard, Reference, Scrap, copy, write
Clipboard method write() writes arbitrary data, such as images, to the clipboard.
639 Clipboard.writeText() API, Clip, Clipboard, Clipboard API, Cut, Method, Pasteboard, Reference, Scrap, copy, writeText
Clipboard interface's writeText() property writes the specified text string to the system clipboard.
640 Clipboard API API, Async Clipboard API, Clipboard, Clipboard API, Clipboard Event API, ClipboardEvent, Landing, Reference
Clipboard API provides the ability to respond to clipboard commands (cut, copy, and paste) as well as to asynchronously read from and write to the system clipboard. Access to the contents of the clipboard is gated behind the 权限 API ; without user permission, reading or altering the clipboard contents is not permitted.
641 ClipboardEvent API, Clipboard API, Event, Experimental, Interface
ClipboardEvent interface represents events providing information related to modification of the clipboard, that is cut , copy ,和 paste 事件。
642 ClipboardEvent() API, Clipboard API, ClipboardEvent, Constructor, Experimental, Reference
ClipboardEvent() constructor returns a newly created ClipboardEvent , representing an event providing information related to modification of the clipboard, that is cut , copy ,和 paste 事件。
643 ClipboardEvent.clipboardData API, Clipboard API, ClipboardEvent, Experimental, Method, Read-only
ClipboardEvent.clipboardData property holds a DataTransfer object, which can be used:
644 CloseEvent API, Interface, Reference, Web, WebSocket, WebSockets
A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose 属性。
645 CloseEvent() API, CloseEvent, Constructor, Reference
CloseEvent() constructor creates a new CloseEvent .
646 CloseEvent.initCloseEvent()
CloseEvent.initCloseEvent() method initializes the value of a close event once it's been created (normally using the Document.createEvent() 方法)。
647 Comment API, DOM, Reference
Comment interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
648 Comment() API, Comment, Constructor, DOM
Comment() constructor returns a newly created Comment object with the optional DOMString given in parameter as its textual content.
649 CompositionEvent API, CompositionEvent, DOM, Event, Reference
The DOM CompositionEvent represents events that occur due to the user indirectly entering text.
650 CompositionEvent.CompositionEvent() API, CompositionEvent, Constructor, Reference
CompositionEvent() constructor creates a new CompositionEvent object instance.
651 CompositionEvent.data API, CompositionEvent, Property, Reference, data
data read-only property of the CompositionEvent interface returns the characters generated by the input method that raised the event; its exact nature varies depending on the type of event that generated the CompositionEvent 对象。
652 CompositionEvent.initCompositionEvent() API, CompositionEvent, Deprecated, Method, Reference, initCompositionEvent
initCompositionEvent () 方法源于 CompositionEvent interface initializes the attributes of a CompositionEvent object instance.
653 CompositionEvent.locale API, CompositionEvent, Deprecated, Locale, Property, Reference
locale read-only property of the CompositionEvent interface returns the locale of current input method (for example, the keyboard layout locale if the composition is associated with IME).
654 控制台 API API, Debugging, Overview, console, dump, log, output, test
控制台 API 提供允许开发者履行调试任务的功能,譬如:在代码中设定点日志消息或变量值,或计时完成操作需要多长时间。
655 ConstantSourceNode API, Audio, ConstantSourceNode, Interface, Media, Reference, Web Audio API
ConstantSourceNode interface—part of the Web Audio API—represents an audio source (based upon AudioScheduledSourceNode ) whose output is single unchanging value. This makes it useful for cases in which you need a constant value coming in from an audio source. In addition, it can be used like a constructible AudioParam by automating the value of its offset or by connecting another node to it; see Controlling multiple parameters with ConstantSourceNode .
656 ConstantSourceNode() API, Audio, AudioNode, ConstantSourceNode, Constructor, Reference, Web Audio API
ConstantSourceNode() constructor creates a new ConstantSourceNode object instance, representing an audio source which constantly outputs samples whose values are always the same.
657 ConstantSourceNode.offset API, Audio, ConstantSourceNode, Media, Property, Read-only, Web Audio API
The read-only offset 特性为 ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
658 ConstrainBoolean API, ConstrainBooleanParameters, Constraints, Dictionary, Interface, Media, Media Capture and Streams API, Media Streams API, Reference, Web, WebRTC
ConstrainBoolean dictionary is used to specify a constraint for a property whose value is a Boolean value. You can specify an exact value which must be matched, an ideal value that should be matched if at all possible, and a fallback value to attempt to match once all more specific constraints have been applied.
659 ConstrainDOMString API, ConstrainDOMStringParameters, Constraints, Dictionary, Interface, Media, Media Capture and Streams API, Media Streams API, Reference, Web, WebRTC
ConstrainDOMString dictionary is used to specify a constraint for a property whose value is a string. It allows you to specify one or more exact string values from which one must be the parameter's value, or a set of ideal values which should be used if possible. You can also specify a single string (or an array of strings) which the user agent will do its best to match once all more stringent constraints have been applied.
660 ConstrainDouble API, Constraints, Dictionary, Interface, Media, Media Capture and Streams API, Media Stream API, Reference, WebRTC
ConstrainDouble type is used to specify a constraint for a property whose value is a double-precision floating-point number. It extends the DoubleRange dictionary (which provides the ability to specify a permitted range of property values) to also support an exact value and/or an ideal value the property should take on. Additionally, you can specify the property's value as a simple floating-point value, in which case the user agent does its best to match the value once all other more stringent constraints are met.
661 ConstrainLong API, ConstrainLongRange, Constraints, Dictionary, Interface, Media, Media Capture and Streams API, Media Streams API, Reference, WebRTC
ConstrainLong type is used to specify a constraint for a property whose value is an integral number. It extends the LongRange dictionary (which provides the ability to specify a permitted range of property values) to also support an exact value and/or an ideal value the property should take on. In addition, you can specify the value as a simple long integer value, in which case the user agent does its best to match the value once all other more stringent constraints are met.
662 Constraint validation API API, Constraint validation, Landing, Reference
The Constraint Validation API enables checking values that users have entered into form controls, before submitting the values to the server.
663 ConvolverNode API, ConvolverNode, Interface, Reference, Web Audio API
ConvolverNode interface is an AudioNode that performs a Linear Convolution on a given AudioBuffer , often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
664 ConvolverNode() API, Audio, Constructor, Convolver, Reference, Web Audio API
ConvolverNode() constructor of the Web 音频 API creates a new ConvolverNode object instance.
665 ConvolverNode.buffer API, Buffer, ConvolverNode, Property, Reference, Web Audio API
An AudioBuffer .
666 ConvolverNode.normalize API, ConvolverNode, Property, Reference, Web Audio API, parent
normalize 特性为 ConvolverNode interface is a boolean that controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the buffer attribute is set, or not.
667 坐标 API, Coordinates, Geolocation API, Interface, Secure context
坐标 interface represents the position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated.
668 Coordinates.accuracy API, Coordinates, Geolocation API, Property, Secure context, accuracy
Coordinates.accuracy read-only property is a strictly positive double representing the accuracy, with a 95% confidence level, of the Coordinates.latitude and Coordinates.longitude properties expressed in meters.
669 Coordinates.altitude API, Coordinates, Geolocation API, Property, Secure context, altitude
Coordinates.altitude read-only property is a double representing the altitude of the position in meters, relative to sea level. This value is null if the implementation cannot provide this data.
670 Coordinates.altitudeAccuracy API, Coordinates, Geolocation API, Property, Secure context, altitudeAccuracy
Coordinates.altitudeAccuracy read-only property is a strictly positive double representing the accuracy, with a 95% confidence level, of the altitude expressed in meters. This value is null if the implementation doesn't support measuring altitude.
671 Coordinates.heading API, Coordinates, Geolocation API, Property, Secure context, heading
Coordinates.heading read-only property is a double representing the direction in which the device is traveling. This value, specified in degrees, indicates how far off from heading due north the device is. Zero degrees represents true true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees). If Coordinates.speed is 0 , heading is NaN . If the device is not able to provide heading information, this value is null .
672 Coordinates.latitude API, Coordinates, Geolocation API, Property, Secure context, latitude
Coordinates.latitude read-only property is a double representing the latitude of the position in decimal degrees.
673 Coordinates.longitude API, Coordinates, GPS, Geolocation, Geolocation API, Global Positioning System, Property, Read-only, Reference, Secure context, longitude
坐标 interface's read-only longitude property is a double-precision floating point value which represents the longitude of a geographical position, specified in decimal degrees. Together with a DOMTimeStamp indicating a time of measurement, the 坐标 object is part of the Position interface which is the object type returned by Geolocation API functions that obtain and return a geographical position.
674 Coordinates.speed API, Coordinates, Geolocation API, Property, Secure context, speed
Coordinates.speed read-only property is a double representing the velocity of the device in meters per second. This value is null if the implementation is not able to measure it.
675 CountQueuingStrategy API, CountQueuingStrategy, Experimental, Interface, Reference, Streams
The CountQueuingStrategy interface of the the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.
676 CountQueuingStrategy.CountQueuingStrategy() API, Constructor, CountQueuingStrategy, Experimental, Reference, Streams
CountQueuingStrategy() constructor creates and returns a CountQueuingStrategy() object instance.
677 CountQueuingStrategy.size() API, CountQueuingStrategy, Experimental, Method, Reference, Streams, size
size() 方法源于 CountQueuingStrategy interface always returns 1 , so that the total queue size is a count of the number of chunks in the queue.
678 CrashReportBody API, CrashReportBody, Experimental, Interface, Reference, Reporting API
CrashReportBody interface of the Reporting API represents the body of a crash report (the return value of its Report.body property).
679 Credential API, Credential Management API, Experimental, Interface, NeedsExample, Reference, credential management
Credential interface of the the 证书管理 API provides information about an entity as a prerequisite to a trust decision.
680 Credential.id API, Credential, Credential Management API, Property, Reference, credential management, id
id 特性为 Credential interface returns a DOMString containing the credential's identifier. This might be any one of a GUID, username, or email address.
681 Credential.name API, Credential, Property, Reference, credential management, name
name 特性为 Credential interface returns a DOMString , containing the name associated with a credential.
682 Credential.type API, Credential, Credential Management API, Property, Reference, credential management
type 特性为 Credential interface returns a DOMString containing the credential's type. Valid values are password , federated and public-key .
683 证书管理 API API, Credential Management API, Landing, NeedsContent, Overview, Reference, credential management
This API lets websites interact with a user agent’s password system so that websites can deal in a uniform way with site credentials and user agents can provide better assistance with the management of their credentials. For example, user agents have a particularly hard time dealing with federated identity providers or esoteric sign-in mechanisms that use more than just a username and password. To address these problems, the Credential Management API provides ways for a website to store and retrieve different types of credentials. This give users capabilities such as seeing the federated account they used to sign on to a site, or resuming a session without the explicit sign-in flow of an expired session.
684 CredentialsContainer API, Credential Management API, CredentialsContainer, Experimental, Interface, NeedsExample, Reference, credential management
CredentialsContainer interface of the the 证书管理 API exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen. This interface is accessible from Navigator.credentials .
685 CredentialsContainer.create() API, Credential Management API, CredentialsContainer, Method, Reference, credential management
create() 方法源于 CredentialsContainer interface returns a Promise that resolves with a new Credential instance based on the provided options, or null if no Credential object can be created.
686 CredentialsContainer.get() API, Credential Management API, CredentialsContainer, Method, NeedsExample, Reference, credential management
get() 方法源于 CredentialsContainer interface returns a Promise to a single Credential instance that matches the provided parameters. If no match is found the Promise will resolve to null.
687 CredentialsContainer.preventSilentAccess() API, Credential Management API, CredentialsContainer, Method, NeedsExample, Reference, credential management
preventSilentAccess() 方法源于 CredentialsContainer interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns an empty Promise .
688 CredentialsContainer.store() API, Credential Management API, CredentialsContainer, Method, NeedsExample, Reference, credential management
store() 方法源于 CredentialsContainer stores a set of credentials for the user inside a Credential instance, returning this in a Promise .
689 Crypto API, Interface, Reference, Web Crypto API
Crypto interface represents basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
690 Crypto.getRandomValues() API, Cryptography, Method, Reference
Crypto.getRandomValues() method lets you get cryptographically strong random values. The array given as the parameter is filled with random numbers (random in its cryptographic meaning).
691 Crypto.subtle API, Cryptography, Property, Read-only, Reference, Web Crypto API
Crypto.subtle 只读特性返回 SubtleCrypto object allowing to perform cryptographical operations.
692 CryptoKey API, CryptoKey, Dictionary, Reference, Référence(2), Web Crypto API
CryptoKey interface of the Web 加密 API represents a cryptographic key .
693 CryptoKeyPair API, CryptoKeyPair, Dictionary, Reference, Web Crypto API
CryptoKeyPair dictionary of the Web 加密 API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm.
694 CustomElementRegistry API, CustomElementRegistry, Experimental, Interface, Landing, Reference, Web Components, custom elements
CustomElementRegistry interface provides methods for registering custom elements and querying registered elements. To get an instance of it, use the window.customElements 特性。
695 CustomElementRegistry.define() API, CustomElementRegistry, Method, Reference, Web Components, custom elements, define
define() 方法源于 CustomElementRegistry interface defines a new custom element.
696 CustomElementRegistry.get() API, CustomElementRegistry, Experimental, Method, Reference, Web Components, custom elements, get
get() 方法源于 CustomElementRegistry interface returns the constructor for a previously-defined custom element.
697 CustomElementRegistry.upgrade() API, CustomElementRegistry, Method, Reference, Upgrade, Web Components, custom elements
upgrade() 方法源于 CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document.
698 CustomElementRegistry.whenDefined() API, CustomElementRegistry, Method, Reference, Web Components, custom elements, whenDefined
whenDefined() 方法源于 CustomElementRegistry interface returns a Promise that resolves when the named element is defined.
699 CustomEvent API, DOM, Interface, NeedsExample, Reference
This interface inherits properties from its parent, Event :
700 CustomEvent() API, Constructor, CustomEvent, Reference, events
CustomEvent() constructor creates a new CustomEvent .
701 CustomEvent.detail API, CustomEvent, DOM, Property, Reference, detail
detail readonly property of the CustomEvent interface returns any data passed when initializing the event.
702 CustomEvent.initCustomEvent() API, CustomEvent, DOM, Deprecated, Method, Reference
CustomEvent.initCustomEvent() method initializes a CustomEvent object. If the event has already been dispatched, this method does nothing.
703 DOMConfiguration API, DOM, Obsolete, Reference
Pre-defined parameters: "canonical-form", "cdata-sections", "check-character-normalization", "comments", "datatype-normalization", "element-content-whitespace", "entities", "error-handler", "infoset", "namespaces", "namespace-declarations", "normalize-characters","schema-location", "schema-type", "split-cdata-sections", "validate", "validate-if-schema", "well-formed"
704 DOMError API, DOM, DOMError, Deprecated, Interface, Reference
DOMError interface describes an error object that contains an error name.
705 DOMException API, DOM, DOMException, Error, Error code, Exception, Reference
DOMException interface represents an abnormal event (called an exception ) which occurs as a result of calling a method or accessing a property of a web API.
706 DOMException() API, Constructor, DOMException, Reference
DOMException() constructor returns a DOMException object with a specified message and name.
707 DOMException.code API, Code, DOMException, Property, Reference
code read-only property of the DOMException interface returns a short that contains one of the error code constants ,或 0 if none match. This field is used for historical reasons. New DOM exceptions don't use this anymore: they put this info in the DOMException.name 属性。
708 DOMException.message API, DOMException, Property, Reference, message
message read-only property of the DOMException interface returns a DOMString representing a message or description associated with the given error name .
709 DOMException.name API, DOMException, Property, Reference, name
name read-only property of the DOMException interface returns a DOMString that contains one of the strings associated with an error name .
710 DOMHighResTimeStamp API, DOMHighResTimeStamp, High Resolution Time, Reference, Time, Type
DOMHighResTimeStamp type is a double and is used to store a time value. The value could be a discrete point in time or the difference in time between two discrete points in time.
711 DOMImplementation API, DOM, Interface, Reference
DOMImplementation interface represents an object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation 特性。
712 DOMImplementation.createDocument() API, DOM, DOMImplementation, Method, Reference
DOMImplementation.createDocument() method creates and returns an XMLDocument .
713 DOMImplementation.createDocumentType() API, DOM, DOMImplementation, Method, Reference
DOMImplementation.createDocumentType() method returns a DocumentType object which can either be used with DOMImplementation.createDocument upon document creation or can be put into the document via methods like Node.insertBefore() or Node.replaceChild() .
714 DOMImplementation.createHTMLDocument() API, DOM, DOM Reference, DOMImplementation, Method, Reference
DOMImplementation.createHTMLDocument() method creates a new HTML Document .
715 DOMImplementation.hasFeature() API, DOM, DOMImplementation, Method, Reference
DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported. It is deprecated and modern browsers return true in all cases.
716 DOMImplementationList API, DOM, Obsolete, Reference
Returned by DOMImplementationSource.getDOMImplementationList() and DOMImplementationRegistry.getDOMImplementationList() . Can be iterated with 0-based index.
717 DOMLocator API, DOM, DOM Reference, Obsolete, Reference
Indicates a location such as where an error occurred. Returned by DOMError.location .
718 DOMMatrix API, DOMMatrix, Experimental, Geometry, Geometry Interfaces, Interface, Reference, matrix
DOMMatrix interface represents 4x4 matrices, suitable for 2D and 3D operations including rotation and translation. It is a mutable version of the DOMMatrixReadOnly 接口。
719 DOMMatrix() API, Constructor, Experimental, Geometry, Geometry Interfaces, Reference, matrix
DOMMatrix constructor creates a new DOMMatrix object which represents 4x4 matrices, suitable for 2D and 3D operations..
720 DOMMatrixReadOnly 2D, 3D, API, Computation, DOMMatrixReadOnly, Geometry, Geometry Interfaces, Graphics, Interface, Math, Modeling, Read-only, Reference, Rotate, Scale, Skew, VR, Web, angle, camera, matrix, transform
DOMMatrixReadOnly interface represents a read-only 4x4 matrix, suitable for 2D and 3D operations. The DOMMatrix interrface—which is based upon DOMMatrixReadOnly —adds mutability , allowing you to alter the matrix after creating it.
721 DOMMatrixReadOnly() API, Constructor, Experimental, Geometry, Geometry Interfaces, Reference, matrix
DOMMatrixReadOnly constructor creates a new DOMMatrixReadOnly object which represents 4x4 matrices, suitable for 2D and 3D operations.
722 DOMMatrixReadOnly.flipX() API, DOMMatrix, DOMMatrixReadOnly, Experimental, FlipX, Geometry, Geometry Interfaces, Interface, Method, Reference, matrix
flipX() 方法源于 DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.
723 DOMMatrixReadOnly.scale() API, DOMMatrix, DOMMatrixReadOnly, Experimental, Geometry, Geometry Interfaces, Interface, Method, Reference, Scale, matrix
No summary!
724 DOMMatrixReadOnly.translate() API, DOMMatrix, DOMMatrixReadOnly, Experimental, Geometry, Geometry Interfaces, Interface, Method, Reference, Translate, matrix
translate() 方法源于 DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.
725 DOMObject API, DOM, DOM Reference, DOMObject, Object, Obsolete, Reference
The obsolete DOMObject interface was used in earlier versions of the DOM specification as the base class for any object data type.
726 DOMParser API, DOM, DOM Parsing, Document, HTML, HTMLDocument, MakeBrowserAgnostic, NeedsMarkupWork, Parsing, Reference, SVG, XML, XMLDocument
DOMParser interface provides the ability to parse XML or HTML source code from a string into a DOM Document .
727 DOMParser() API, Constructor, DOM Parsing, Parsing, Reference
DOMParser() constructor creates a new DOMParser 对象。
728 DOMPoint API, Coordinate, Coordinates, DOM, DOMPoint, Geometry, Geometry Interfaces, Interface, Point, Reference, VR
A DOMPoint object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.
729 DOMPoint.DOMPoint() API, Constructor, Coordinates, DOM, DOMPoint, Geometry, Geometry Interfaces, Point, Reference
DOMPoint() constructor creates and returns a new DOMPoint object, given the values for some or all of its properties.
730 DOMPoint.fromPoint() API, Coordiantes, DOM, DOMPoint, Geometry, Geometry Interfaces, Method, Point, Reference, Static, Static Method, fromPoint
静态 DOMPoint method fromPoint() creates and returns a new mutable DOMPoint object given a source point.
731 DOMPoint.w API, DOM, DOMPoint, Geometry, Geometry Interfaces, Point, Property, Reference, W, perspective
DOMPoint interface's w property holds the point's perspective value, w, for a point in space.
732 DOMPoint.x API, Coordinates, DOM, DOMPoint, Geometry, Geometry Interfaces, Point, Property, Reference, x
DOMPoint interface's x property holds the horizontal coordinate, x, for a point in space.
733 DOMPoint.y API, Coordinate, DOM, DOMPoint, Geometry, Geometry Interfaces, Point, Property, Reference, y
DOMPoint interface's y property holds the vertical coordinate, y , for a point in space.
734 DOMPoint.z API, Coordinate, DOM, DOMPoint, Depth, Geometry, Geometry Interfaces, Point, Position, Property, Reference, z
DOMPoint interface's z property specifies the depth coordinate of a point in space.
735 DOMPointInit API, Coordinates, DOM, DOMPointInit, Dictionary, Geometry, Geometry Interfaces, Interface, Point, Reference
DOMPointInit dictionary is used to provide the values of the coordinates and perspective when creating and JSONifying a DOMPoint or DOMPointReadOnly 对象。
736 DOMPointInit.w API, DOM, DOMPointInit, Geometry, Geometry Interfaces, Point, Property, Reference, W, perspective
DOMPointInit dictionary's w property is used to specify the w perspective value of a point in space when either creating or serializing to JSON a DOMPoint or DOMPointReadOnly 对象。
737 DOMPointInit.x API, Coordinates, DOM, DOMPointInit, Geometry, Geometry Interfaces, Point, Property, Reference, x
DOMPointInit dictionary's x property is used to specify the x component of a point in 2D or 3D space when either creating or serializing a DOMPoint or DOMPointReadOnly .
738 DOMPointInit.y API, Coordinates, DOM, DOMPointInit, Geometry, Geometry Interfaces, Point, Property, Reference, y
DOMPointInit dictionary's y property is used to specify the y -coordinate of a point in 2D or 3D space when either creating or serializing to JSON a DOMPoint or DOMPointReadOnly 对象。
739 DOMPointInit.z API, Coordinates, DOM, DOMPointInit, Geometry, Geometry Interfaces, Point, Property, Reference, z
DOMPointInit dictionary's z property is used to specify the z -coordinate of a point in 2D or 3D space when either creating or serializing to JSON a DOMPoint or DOMPointReadOnly 对象。
740 DOMPointReadOnly API, Coordinate, DOM, DOM Reference, DOMPointReadOnly, Geometry, Geometry Interfaces, Interface, Point, Reference
DOMPointReadOnly interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.
741 DOMPointReadOnly() API, Constructor, Coordinates, DOM, DOMPointReadOnly, Geometry, Geometry Interfaces, Point, Position, Reference
DOMPointReadOnly() constructor returns a new DOMPointReadOnly object representing a point in 2D or 3D space, optionally with perspective, whose values cannot be altered by script code.
742 DOMPointReadOnly.fromPoint() API, Coordinates, DOM, DOMPointReadOnly, Geometry, Geometry Interfaces, Method, Point, Reference, Static Method, fromPoint
静态 DOMPointReadOnly method fromPoint() creates and returns a new DOMPointReadOnly object given a source point.
743 DOMPointReadOnly.toJSON() API, Coordinates, DOM, DOMPointReadOnly, Geometry, Geometry Interfaces, JSON, Method, Point, Reference, toJSON
DOMPointReadOnly method toJSON() 返回 DOMPointInit object giving the JSON form of the point object.
744 DOMPointReadOnly.w API, Coordinates, DOM, DOMPointReadOnly, Geometry, Geometry Interfaces, Point, Position, Property, Read-only, Reference, W, perspective
DOMPointReadOnly interface's w property holds the point's perspective value, w, for a read-only point in space.
745 DOMPointReadOnly.x API, Coordinates, DOM, DOMPointReadOnly, Geometry, Geometry Interfaces, Point, Property, Read-only, Reference, x
DOMPointReadOnly interface's x property holds the horizontal coordinate, x, for a read-only point in space. This property cannot be changed by JavaScript code in this read-only version of the DOMPoint 对象。
746 DOMPointReadOnly.y API, Coordinates, DOM, DOMPointReadOnly, Geometry, Geometry Interfaces, Point, Property, Read-only, Reference, Vertical, y
DOMPointReadOnly interface's y property holds the vertical coordinate, y, for a read-only point in space.
747 DOMPointReadOnly.z API, Coordinates, DOM, DOMPointReadOnly, Depth, Geometry, Geometry Interfaces, Point, Property, Read-only, Reference, z
DOMPointReadOnly interface's z property holds the depth coordinate, z, for a read-only point in space.
748 DOMQuad API, DOM, DOM Reference, DOMQuad, Experimental, Geometry
A DOMQuad is a collection of four DOMPoint s defining the corners of an arbitrary quadrilateral. Returning DOMQuad s lets getBoxQuads() return accurate information even when arbitrary 2D or 3D transforms are present. It has a handy bounds attribute returning a DOMRectReadOnly for those cases where you just want an axis-aligned bounding rectangle.
749 DOMRect API, DOM, DOM Reference, DOMRect, Geometry, Geometry Interfaces, Interface, Rectangle, Reference
A DOMRect represents a rectangle.
750 DOMRect.DOMRect() API, Constructor, DOM Reference, DOMRect, Experimental, Geometry, Reference
DOMRect() constructor creates a new DOMRect 对象。
751 DOMRectReadOnly API, DOM Reference, DOMRectReadOnly, Geometry, Geometry Interfaces, Interface, Read-only, Rectangle, Reference
DOMRectReadOnly interface specifies the standard properties used by DOMRect to define a rectangle whose properties are immutable.
752 DOMRectReadOnly() API, Constructor, DOM, DOM Reference, DOMRectReadOnly, Experimental, Geometry, Reference
DOMRectReadOnly() constructor creates a new DOMRectReadOnly 对象。
753 DOMRectReadOnly.bottom API, DOM, DOMRect, DOMRectReadOnly, Experimental, Expérimental(2), Geometry, Property, Reference, Référence(2), bottom
bottom read-only property of the DOMRectReadOnly interface returns the bottom coordinate value of the DOMRect. (Has the same value as y + height ,或 y if height is negative.)
754 DOMRectReadOnly.fromRect() API, DOM Reference, DOMRect, DOMRectReadOnly, Experimental, Geometry, Method, Reference, fromRect()
fromRect() 特性为 DOMRectReadOnly interface creates a new DOMRectReadOnly object with a given location and dimensions.
755 DOMRectReadOnly.height API, DOM, DOMRect, DOMRectReadOnly, Experimental, Expérimental(2), Geometry, Property, Reference, Référence(2), height
height read-only property of the DOMRectReadOnly interface represents the height of the DOMRect .
756 DOMRectReadOnly.left API, DOM, DOMRect, DOMRectReadOnly, Experimental, Expérimental(2), Geometry, Property, Reference, Référence(2), left
left read-only property of the DOMRectReadOnly interface returns the left coordinate value of the DOMRect. (Has the same value as x ,或 x + width if width is negative.)
757 DOMRectReadOnly.right API, DOM, DOMRect, DOMRectReadOnly, Experimental, Expérimental(2), Geometry, Property, Reference, Référence(2), right
right read-only property of the DOMRectReadOnly interface returns the right coordinate value of the DOMRect. (Has the same value as x + width ,或 x if width is negative.)
758 DOMRectReadOnly.top API, DOM, DOMRect, DOMRectReadOnly, Experimental, Expérimental(2), Geometry, Property, Reference, Référence(2), top
top read-only property of the DOMRectReadOnly interface returns the top coordinate value of the DOMRect. (Has the same value as y ,或 y + height if height is negative.)
759 DOMRectReadOnly.width API, DOM, DOMRect, DOMRectReadOnly, Experimental, Expérimental(2), Geometry, Property, Reference, Référence(2), width
width read-only property of the DOMRectReadOnly interface represents the width of the DOMRect .
760 DOMRectReadOnly.x API, DOM, DOMRect, DOMRectReadOnly, Experimental, Expérimental(2), Geometry, Property, Reference, Référence(2), x
x read-only property of the DOMRectReadOnly interface represents the x coordinate of the DOMRect 's origin.
761 DOMRectReadOnly.y API, DOM, DOMRect, DOMRectReadOnly, Experimental, Expérimental(2), Geometry, Property, Reference, Référence(2), y
y read-only property of the DOMRectReadOnly interface represents the y coordinate of the DOMRect 's origin.
762 DOMString API, DOM, Reference, String
DOMString 是 UTF-16 字符串。由于 JavaScript 已经使用这种字符串, DOMString 被直接映射到 String .
763 二进制字符串 DOM, JavaScript, JavaScript typed arrays, Reference, String
JavaScript strings are UTF-16 encoded strings. This means that each code unit requires two bytes of memory and is able to represent 65535 different code points. A subset of these strings is represented by UTF-16 strings containing only ASCII characters (i.e., characters whose code point does not exceed 127 ). For instance, the string "Hello world!" belongs to the ASCII subset, while the string "ÀÈÌÒÙ" does not. A binary string is a concept similar to the ASCII subset, but instead of limiting the range to 127 , it allows code points until 255 . Its purpose however is not to represent characters, but binary data. The size of the data so represented is twice as big as it would be in normal binary format, however this will not be visible to the final user, since the length of JavaScript strings is calculated using two bytes as the unit.
764 DOMStringList API, DOM, DOMStringList, Reference
A type returned by some APIs which contains a list of DOMString (strings).
765 DOMStringMap API, HTML DOM, Interface, NeedsMarkupWork, NeedsNewLayout, NeedsUpdate, Reference
Used by the attribute to represent data for custom attributes added to elements.
766 DOMTimeStamp API, DOM, Interface, Reference
DOMTimeStamp type represents an absolute or relative number of milliseconds, depending on the specification in which it appears.
767 DOMTokenList API, DOM, DOMTokenList, Interface, Reference
DOMTokenList interface represents a set of space-separated tokens. Such a set is returned by Element.classList , HTMLLinkElement.relList , HTMLAnchorElement.relList , HTMLAreaElement.relList , HTMLIframeElement.sandbox ,或 HTMLOutputElement.htmlFor . It is indexed beginning with 0 as with JavaScript Array 对象。 DOMTokenList is always case-sensitive.
768 DOMTokenList.add() API, Add, DOM, DOMTokenList, Method, Reference
add() 方法源于 DOMTokenList interface adds the given token to the list.
769 DOMTokenList.contains() API, Contains, DOM, DOMTokenList, Method, Reference
contains() 方法源于 DOMTokenList interface returns a Boolean true if the underlying list contains the given token , otherwise false .
770 DOMTokenList.entries() DOM, DOMTokenList, Iterable, Method, Reference, Web
DOMTokenList.entries() method returns an iterator allowing you to go through all key/value pairs contained in this object. The values are DOMString objects, each representing a single token.
771 DOMTokenList.forEach() DOM, DOMTokenList, Iterable, Method, Reference, Web, forEach
forEach() 方法源于 DOMTokenList interface calls the callback given in parameter once for each value pair in the list, in insertion order.
772 DOMTokenList.item() API, DOM, DOMTokenList, Method, Reference, item
item() 方法源于 DOMTokenList interface returns an item in the list by its index.
773 DOMTokenList.keys() DOM, DOMTokenList, Iterable, Method, Reference, Web, keys
keys() 方法源于 DOMTokenList interface returns an iterator allowing to go through all keys contained in this object. The keys are of type unsigned integer .
774 DOMTokenList.length API, DOM, DOMTokenList, Property, Reference, length
length read-only property of the DOMTokenList interface is an integer representing the number of objects stored in the object.
775 DOMTokenList.remove() API, DOM, DOMTokenList, Method, Reference, remove
remove() 方法源于 DOMTokenList interface removes the specified tokens from the list.
776 DOMTokenList.replace() API, DOM, Document, Method, Reference
replace() 方法源于 DOMTokenList interface replaces an existing token with a new token.
777 DOMTokenList.supports() API, DOM, Method, Reference
supports() 方法源于 DOMTokenList interface returns true if a given token is in the associated attribute's supported tokens. This method is intended to support feature detection.
778 DOMTokenList.toggle() API, DOM, DOMTokenList, Method, Reference, toggle
toggle() 方法源于 DOMTokenList interface removes a given token from the list and returns false 。若 token doesn't exist it's added and the function returns true .
779 DOMTokenList.value API, DOM, DOMTokenList, Method, Reference, value
value 特性为 DOMTokenList interface returns the value of the list as a DOMString , or clears and sets the list to the given value.
780 DOMTokenList.values() DOM, DOMTokenList, Iterable, Method, Reference, Web, values
values() 方法源于 DOMTokenList interface returns an iterator allowing developers to go through all values contained in the DOMTokenList . The individual values are DOMString 对象。
781 DOMUserData API, DOM, Interface, NeedsCompatTable, Obsolete, Reference
DOMUserData refers to application data. In JavaScript, it maps directly to Object . It is returned or used as an argument by Node.setUserData () , Node.getUserData () , used as the third argument to handle() on UserDataHandler , and is used or returned by various DOMConfiguration 方法。
782 DataTransfer API, DataTransfer, HTML Drag and Drop API, Interface, NeedsMarkupWork, Reference, Web Development, drag and drop
DataTransfer object is used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML 拖放 API .
783 DataTransfer() API, Constructor, DataTransfer, HTML Drag and Drop API, Reference, drag and drop
DataTransfer constructor creates a new DataTransfer object instance.
784 DataTransfer.addElement() API, Method, Non-standard, Reference, drag and drop
DataTransfer.addElement() method sets the drag source to the given element. This element will be the element to which drag and dragend events are fired, and not the defaut target (the node that was dragged).
785 DataTransfer.clearData() API, DataTransfer, HTML DOM, Method, Reference, clearData, drag and drop
DataTransfer.clearData() method removes the drag operation's drag data for the given type. If data for the given type does not exist, this method does nothing.
786 DataTransfer.dropEffect API, HTML DOM, Property, Reference, drag and drop
DataTransfer.dropEffect property controls the feedback (typically visual) the user is given during a drag and drop operation. It will affect which cursor is displayed while dragging. For example, when the user hovers over a target drop element, the browser's cursor may indicate which type of operation will occur.
787 DataTransfer.effectAllowed API, HTML DOM, Property, Reference, drag and drop
DataTransfer.effectAllowed property specifies the effect that is allowed for a drag operation. The copy operation is used to indicate that the data being dragged will be copied from its present location to the drop location. The move operation is used to indicate that the data being dragged will be moved, and the link operation is used to indicate that some form of relationship or connection will be created between the source and drop locations.
788 DataTransfer.files API, HTML DOM, Property, Reference, drag and drop
DataTransfer.files property is a list of the files in the drag operation. If the operation includes no files, the list is empty.
789 DataTransfer.getData() API, HTML DOM, Method, Reference, drag and drop
DataTransfer.getData() method retrieves drag data (as a DOMString ) for the specified type. If the drag operation does not include data, this method returns an empty string.
790 DataTransfer.items API, HTML DOM, Property, Reference, drag and drop
The read-only DataTransfer property items property is a list of the data transfer items in a drag operation. The list includes one item for each item in the operation and if the operation had no items, the list is empty.
791 DataTransfer.mozClearDataAt() API, Method, Non-standard, Reference, drag and drop
DataTransfer.mozClearDataAt() method removes the data associated with the given format for an item at the specified index. The index must be in the range from zero to the number of items minus one.
792 DataTransfer.mozCursor API, Non-standard, Property, Reference, drag and drop
DataTransfer.mozCursor property returns or sets the drag cursor's state. This is primarily used to control the cursor during tab drags.
793 DataTransfer.mozGetDataAt() API, Method, Non-standard, Reference, drag and drop
DataTransfer.mozGetDataAt() method is used to retrieve an item in the drag event's data transfer object, based on a given format and index . This method returns null if the specified item does not exist or if the index is not in the range from zero to the number of items minus one.
794 DataTransfer.mozItemCount API, Non-standard, Property, Reference, drag and drop
DataTransfer.mozItemCount property returns the number of items being dragged. This can be used, for example, to get the number of files being dragged.
795 DataTransfer.mozSetDataAt() API, Method, Non-standard, Reference, drag and drop
DataTransfer.mozSetDataAt() method is used to add data to a specific index in the drag event's data transfer 对象。
796 DataTransfer.mozSourceNode API, Non-standard, Property, Reference, drag and drop
DataTransfer.mozSourceNode property is used to determine the Node over which the mouse cursor was located when the the drag operation was initiated (for example, when a <button> was clicked). For external drags or if the calling function cannot reach the node, null 被返回。
797 DataTransfer.mozTypesAt() API, Method, Non-standard, Reference, drag and drop
DataTransfer.mozTypesAt() method returns a list of the format types that are stored for an item at the specified index. If the index is not in the range from 0 to the number of items minus one, an empty string list is returned.
798 DataTransfer.mozUserCancelled API, Non-standard, Property, Reference, drag and drop
DataTransfer.mozUserCancelled property is used in the dragend event handler to determine if the user canceled the drag or not. If the user canceled the event, the property returns true 并返回 false otherwise. This property only applies to the dragend 事件。
799 DataTransfer.setData() API, HTML DOM, Method, Reference, drag and drop
DataTransfer.setData() method sets the drag operation's drag data to the specified data and type. If data for the given type does not exist, it is added at the end of the drag data store, such that the last item in the types list will be the new type. If data for the given type already exists, the existing data is replaced in the same position. That is, the order of the types list is not changed when replacing data of the same type.
800 DataTransfer.setDragImage() API, H5 DnD, HTML DOM, Method, Reference, drag and drop
When a drag occurs, a translucent image is generated from the drag target (the element the dragstart event is fired at), and follows the mouse pointer during the drag. This image is created automatically, so you do not need to create it yourself. However, if a custom image is desired, the DataTransfer.setDragImage() method can be used to set the custom image to be used. The image will typically be an <image> element but it can also be a <canvas> or any other visible element.
801 DataTransfer.types API, HTML DOM, Property, Reference, drag and drop
DataTransfer.types read-only property returns an array of the drag data formats (as strings ) that were set in the dragstart event. The order of the formats is the same order as the data included in the drag operation.
802 DataTransferItem API, DataTransferItem, HTML DOM, HTML Drag and Drop API, Interface, Reference, drag and drop
DataTransferItem object represents one drag data item. During a drag operation , each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem 对象。
803 DataTransferItem.getAsFile() API, DataTransferItem, HTML DOM, HTML Drag and Drop API, Method, Reference, drag and drop
If the item is a file, the DataTransferItem.getAsFile() method returns the drag data item's File object. If the item is not a file, this method returns null .
804 DataTransferItem.getAsString() API, DataTransferItem, HTML DOM, HTML Drag and Drop API, Method, Reference, drag and drop, getAsString
DataTransferItem.getAsString() method invokes the given callback with the drag data item's string data as the argument if the item's kind Plain unicode string (i.e. kind is string ).
805 DataTransferItem.kind API, DataTransferItem, HTML DOM, HTML Drag and Drop API, Property, Reference, drag and drop, kind
The read-only DataTransferItem.kind property returns a DataTransferItem representing the drag data item kind: some text or some file.
806 DataTransferItem.type API, DataTransferItem, HTML DOM, HTML Drag and Drop API, Property, Reference, Type, drag and drop
The read-only DataTransferItem.type property returns the type (format) of the DataTransferItem object representing the drag data item. The type is a Unicode string generally given by a MIME type, although a MIME type is not required.
807 DataTransferItem.webkitGetAsEntry() API, DataTransferItem, File System API, File and Directory Entries API, Files, Method, Non-standard, Offline, Reference, drag and drop, getAsEntry
If the item described by the DataTransferItem is a file, webkitGetAsEntry() 返回 FileSystemFileEntry or FileSystemDirectoryEntry representing it. If the item isn't a file, null 被返回。
808 DataTransferItemList API, DataTransferItemList, HTML DOM, HTML Drag and Drop API, Interface, Reference, drag and drop
DataTransferItemList object is a list of DataTransferItem objects representing items being dragged. During a drag operation , each DragEvent has a dataTransfer property and that property is a DataTransferItemList .
809 DataTransferItemList.DataTransferItem() API, DataTransferItemList, Getter, HTML DOM, HTML Drag and Drop API, Method, Reference, drag and drop
DataTransferItem() getter method implements support for accessing items in the DataTransferItemList using array-style syntax (that is DataTransferItem [ index ] ).
810 DataTransferItemList.add() API, Add, DataTransferItemList, HTML DOM, HTML Drag and Drop API, Method, Reference, drag and drop
DataTransferItemList.add() method creates a new DataTransferItem using the specified data and adds it to the drag data list. The item may be a File string of a given type. If the item is successfully added to the list, the newly-created DataTransferItem object is returned.
811 DataTransferItemList.clear() API, DataTransferItemList, HTML DOM, HTML Drag and Drop API, Method, Reference, clear, drag and drop
DataTransferItemList method clear() removes all DataTransferItem objects from the drag data items list, leaving the list empty.
812 DataTransferItemList.length API, DataTransferItemList, Draggged Items, Drop Items, HTML DOM, HTML Drag and Drop API, Item List, Property, Read-only, Reference, drag and drop, length
The read-only length 特性为 DataTransferItemList interface returns the number of items currently in the drag item list.
813 DataTransferItemList.remove() API, DataTransferItemList, HTML DOM, HTML Drag and Drop API, Method, Reference, drag and drop, remove
undefined .
814 DedicatedWorkerGlobalScope API, DedicatedWorkerGlobalScope, Interface, Reference, Référence(2), Web Workers, Workers
DedicatedWorkerGlobalScope object (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript 参考 . See also: Functions available to workers .
815 DedicatedWorkerGlobalScope.close() API, DOM, DedicatedWorkerGlobalScope, Method, Reference, Web Workers, close
close() 方法源于 DedicatedWorkerGlobalScope interface discards any tasks queued in the DedicatedWorkerGlobalScope 's event loop, effectively closing this particular scope.
816 DedicatedWorkerGlobalScope.name API, DOM, DedicatedWorkerGlobalScope, Property, Reference, Worker, name
name read-only property of the DedicatedWorkerGlobalScope interface returns the name that the Worker was (optionally) given when it was created. This is the name that the Worker() constructor can pass to get a reference to the DedicatedWorkerGlobalScope .
817 DedicatedWorkerGlobalScope.onmessage API, DedicatedWorkerGlobalScope, Property, Reference, Référence(2), Web Workers, onmessage
onmessage 特性为 DedicatedWorkerGlobalScope interface represents an EventHandler to be called when the message event occurs and bubbles through the Worker — i.e. when a message is sent to the worker using the Worker.postMessage 方法。
818 DedicatedWorkerGlobalScope.onmessageerror API, DedicatedWorkerGlobalScope, Event Handler, Property, Reference, onmessageerror
onmessageerror event handler of the DedicatedWorkerGlobalScope interface is an EventListener , called whenever an MessageEvent of type messageerror is fired on the worker—that is, when it receives a message that cannot be deserialized .
819 DedicatedWorkerGlobalScope.postMessage() API, DedicatedWorkerGlobalScope, Method, Reference, Référence(2), Web Workers, postMessage
postMessage() 方法源于 DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it. This accepts a single parameter, which is the data to send to the worker. The data may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references.
820 DedicatedWorkerGlobalScope: message event Event
message event is fired on a DedicatedWorkerGlobalScope object when the worker receives a message from its parent (i.e. when the parent sends a message using Worker.postMessage() ).
821 DedicatedWorkerGlobalScope: messageerror event Event
messageerror event is fired on a DedicatedWorkerGlobalScope object when it receives a message that can't be deserialized.
822 DelayNode API, Audio, DelayNode, Interface, Reference, Web Audio API
DelayNode interface represents a delay-line ; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output.
823 DelayNode() API, Audio, Constructor, DelayNode, Media, Reference, Web Audio API
DelayNode() constructor of the Web 音频 API creates a new DelayNode object with a delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data, and its propagation to the output.
824 DelayNode.delayTime API, DelayNode, Property, Reference, Web Audio API, delayTime
An AudioParam .
825 DeprecationReportBody API, DeprecationReportBody, Experimental, Interface, Reference, Reporting API
DeprecationReportBody interface of the Reporting API represents the body of a deprecation report (the return value of its Report.body property).
826 Detecting device orientation API, Device Orientation, Intermediate, Mobile, Motion, Orientation, Reference
Increasingly, web-enabled devices are capable of determining their orientation ; that is, they can report data indicating changes to their orientation with relation to the pull of gravity. In particular, hand-held devices such as mobile phones can use this information to automatically rotate the display to remain upright, presenting a wide-screen view of the web content when the device is rotated so that its width is greater than its height.
827 Device Memory API Device Memory API
Capabilities of the client devices largely depend on the amount of available RAM. Traditionally, developrs had to use heruistics and either benchmark the device or infer the device capabilities based on other factors like device manufacturer or User Agent strings.
828 DeviceAcceleration API, DeviceAcceleration, Experimental, Interface, NeedsExample, Reference
A DeviceAcceleration object provides information about the amount of acceleration the device is experiencing along all three axes.
829 DeviceAcceleration.x API, DeviceAcceleration, NeedsExample, Property, Reference
This read-only property indicates the amount of acceleration that occurred along the X axis in a DeviceAcceleration 对象。
830 DeviceAcceleration.y API, DeviceAcceleration, NeedsExample, Property, Reference
This read-only property indicates the amount of acceleration that occurred along the Y axis in a DeviceAcceleration 对象。
831 DeviceAcceleration.z API, DeviceAcceleration, NeedsExample, Property, Reference
This read-only property indicates the amount of acceleration that occurred along the Z axis in a DeviceAcceleration 对象。
832 DeviceLightEvent API, Ambient Light Events, Experimental, Interface, NeedsBetterSpecLink, NeedsMarkupWork
DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability.
833 DeviceLightEvent.value API, Ambient Light Events, Experimental, NeedsBetterSpecLink, NeedsMarkupWork, Property
value property provides the current level of the ambient light.
834 Using light sensors API, DeviceLightEvent, Guide, HTML5, JavaScript
环境光事件 give a web application access to a device's ambient light sensor to detect changes in light intensity.
835 DeviceMotionEvent API, Device Orientation, DeviceMotionEvent, Experimental, Interface, Mobile, Motion, Orientation, Reference
DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
836 DeviceMotionEvent.DeviceMotionEvent() API, Constructor, Device Orientation, Device Orientation API, Experimental, Mobile, Motion, Non-standard, Orientation, Reference
DeviceMotionEvent constructor creates a new DeviceMotionEvent .
837 DeviceMotionEvent.acceleration API, Device Orientation, Experimental, Mobile, Motion, NeedsExample, Orientation, Property, Reference
acceleration property returns the amount of acceleration recorded by the device, in meters per second squared (m/s 2 ) .
838 DeviceMotionEvent.accelerationIncludingGravity API, Device Orientation, Experimental, Mobile, Motion, NeedsExample, Orientation, Property, Reference
accelerationIncludingGravity property returns the amount of acceleration recorded by the device, in meters per second squared (m/s 2 ) . Unlike DeviceMotionEvent.acceleration which compensates for the influence of gravity, its value is the sum of the acceleration of the device as induced by the user and the acceleration caused by gravity.
839 DeviceMotionEvent.interval API, Device Orientation, Experimental, Mobile, Motion, NeedsExample, Orientation, Property, Reference
Returns the interval, in milliseconds, at which data is obtained from the underlaying hardware. You can use this to determine the granularity of motion events.
840 DeviceMotionEvent.rotationRate API, DOM, DOM Reference, Device Orientation, Experimental, Mobile, Motion, NeedsExample, Orientation, Property, Reference
Returns the rate at which the device is rotating around each of its axes in degrees per second.
841 DeviceOrientationEvent API, Device Orientation API, Experimental, Interface, Reference
DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
842 DeviceOrientationEvent.DeviceOrientationEvent() API, Constructor, Device Orientation API, DeviceOrientationEvent, Experimental, Reference
DeviceOrientationEvent constructor creates a new DeviceOrientationEvent .
843 DeviceOrientationEvent.absolute API, Device Orientation API, DeviceOrientationEvent, NeedsExample, NeedsMarkupWork, Property, Reference
Indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device. See Orientation and motion data explained 了解细节。
844 DeviceOrientationEvent.alpha API, DeviceOrientation API, NeedsBetterSpecLink, NeedsExample, NeedsMarkupWork, Property, Reference
Returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen. See Orientation and motion data explained 了解细节。
845 DeviceOrientationEvent.beta API, Device Orientation API, DeviceOrientationEvent, NeedsBetterSpecLink, NeedsExample, NeedsMarkupWork, Property, Reference
Returns the rotation of the device around the X axis; that is, the number of degrees, ranged between -180 and 180,  by which the device is tipped forward or backward. See Orientation and motion data explained 了解细节。
846 DeviceOrientationEvent.gamma API, Device Orientation API, DeviceOrientationEvent, NeedsBetterSpecLink, NeedsExample, NeedsMarkupWork, Property, Reference
Returns the rotation of the device around the Y axis; that is, the number of degrees, ranged between -90 and 90 , by which the device is tilted left or right. See Orientation and motion data explained 了解细节。
847 DeviceProximityEvent API, Interface, Proximity Events, Reference
DeviceProximityEvent interface provides information about the distance of a nearby physical object using the proximity sensor of a device.
848 DeviceProximityEvent.max API, DeviceProximityEvent, Experimental, Expérimental(2), NeedsBetterSpecLink, NeedsExample, NeedsMarkupWork, Property, Proximity Events, Reference, Référence(2)
max property provides the maximum sensing distance the sensor is able to report, in centimeters.
849 DeviceProximityEvent.min API, DeviceProximityEvent, Experimental, Expérimental(2), NeedsBetterSpecLink, NeedsExample, NeedsMarkupWork, Property, Proximity Events, Reference, Référence(2)
min property provides the minimum distance the sensor can report, in centimeters.
850 DeviceProximityEvent.value API, DeviceProximityEvent, Experimental, Expérimental(2), NeedsBetterSpecLink, NeedsExample, NeedsMarkupWork, Property, Proximity Events, Reference, Référence(2)
value property of DeviceProximityEvent objects provides the current distance between the device and the detected object, in centimeters.
851 DeviceRotationRate API, DOM, DOM Reference, Experimental, Reference
A DeviceRotationRate object provides information about the rate at which the device is rotating around all three axes.
852 DeviceRotationRate.alpha API, DOM, DOM Reference, Property, Reference
This property indicates the rate of rotation around the Z axis -- in degrees per second -- in a DeviceRotationRate 对象。
853 DeviceRotationRate.beta API, DOM, DOM Reference, Property, Reference
This property indicates the rate of rotation around the X axis -- in degrees per second -- in a DeviceRotationRate 对象。
854 DeviceRotationRate.gamma API, DOM, DOM Reference, Property, Reference
This property indicates the rate of rotation around the Y axis -- in degrees per second -- in a DeviceRotationRate 对象。
855 DirectoryEntrySync API, File API, File System API, Offline, Reference, Référence(2), filesystem
DirectoryEntrySync interface of the