ClipboardEvent

这是 实验性技术
检查 浏览器兼容性表格 在生产中使用这之前。

ClipboardEvent interface represents events providing information related to modification of the clipboard, that is cut , copy ,和 paste 事件。

构造函数

ClipboardEvent()
创建 ClipboardEvent event with the given parameters.

特性

Also inherits properties from its parent Event .

ClipboardEvent.clipboardData 只读
DataTransfer object containing the data affected by the user-initiated cut , copy ,或 paste operation, along with its MIME type.

方法

No specific methods; inherits methods from its parent Event .

规范

规范 状态 Comment
Clipboard API and events
The definition of 'ClipboardEvent' in that specification.
工作草案 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
ClipboardEvent
Chrome Yes Edge 12 Firefox 22 IE 4 Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android 22 Opera Android Yes Safari iOS Yes Samsung Internet Android Yes
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
clipboardData
Chrome Yes Edge 12 Firefox 22 IE 5 Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android 22 Opera Android Yes Safari iOS Yes Samsung Internet Android Yes

图例

完整支持
完整支持
兼容性未知
兼容性未知
实验。期望将来行为有所改变。
实验。期望将来行为有所改变。

另请参阅

  1. ClipboardEvent
  2. 构造函数
    1. ClipboardEvent()
  3. 方法
    1. clipboardData
  4. 继承:
    1. Event
  5. Related pages for Clipboard API
    1. Clipboard
    2. ClipboardItem
    3. Navigator.clipboard