这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
ClipboardEvent()
constructor returns a newly created
ClipboardEvent
, representing an event providing information related to modification of the clipboard, that is
cut
,
copy
,和
paste
事件。
var clipboardEvent = new ClipboardEvent(type[,options]);
ClipboardEvent()
constructor also inherits arguments from
Event()
.
DOMString
representing the name of the type of the
ClipboardEvent
. It is case-sensitive and can be:
'copy'
,
'cut'
,或
'paste'
.
clipboardData
: A
DataTransfer
containing the data concerned by the clipboard event.
dataType
: A
DOMString
containing the MIME-type of the data contained in the
data
自变量。
data
: A
DOMString
containing the data concerned by the clipboard event.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Clipboard API and events
The definition of 'ClipboardEvent()' in that specification. |
工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
ClipboardEvent()
构造函数
|
Chrome 58 | Edge ≤79 | Firefox 22 | IE ? | Opera 45 | Safari ? | WebView Android 58 | Chrome Android 58 | Firefox Android 22 | Opera Android 43 | Safari iOS ? | Samsung Internet Android 7.0 |
完整支持
兼容性未知
实验。期望将来行为有所改变。
copy
,
cut
,
paste
ClipboardEvent
interface it belongs to.
ClipboardEvent
ClipboardEvent()