HTML5 - 阅读剪贴板? [英] HTML5 - Read the Clipboard?

查看:116
本文介绍了HTML5 - 阅读剪贴板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML 5是否可以读取剪贴板(不使用Java)?

Is it possible with HTML 5 to read the clipboard (without using Java)?

推荐答案

也许HTML5核心规范没有不提供用于访问剪贴板的API,但HTML5 HTML系列中的API之一就是这样。它被称为剪贴板API和事件,目前(截至2011年7月)是一份工作草案。你可以在这里找到规范:

Perhaps the HTML5 Core spec doesn't provide an API for accessing the clipboard, but one of the APIs in the HTML5 family of APIs does. It's called "Clipboard API and Events," and its currently (as of July 2011) a Working Draft. You can find the spec here:

http:// www .w3.org / TR / clipboard-apis /

至于实施,好吧,我还没找到。

As for implementations, well, I couldn't find one just yet.

更新:截至2012年12月,该API仍然是工作草案(2012年2月)。仍然没有任何有效的实施,只是基于Flash的文本解决方法

Update: As of Dec 2012, this API is still a working draft (dated Feb 2012). There still do not appear to be any working implementations, just a Flash-based workaround for text.

这篇关于HTML5 - 阅读剪贴板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆