使用jQuery阅读客户端剪贴板吗? [英] Read the client clipboard with jQuery?

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

问题描述

是否可以使用jQuery获取/读取客户端的剪贴板?

Is it possible to get/read the clipboard of a client with jQuery?

(我需要获取电子表格的信息并将其粘贴到jqGrid网络网格中...)

(I need get the information of a spread sheet and paste this information in a jqGrid web grid...)

推荐答案

我做了一种变通方法来完成请求.基本上,我在Web窗体中包括了一个带有图例在此处粘贴您的信息.使用CTRL + V"的TextBox对象. 然后,我使用jQuery读取了事件pressKey(读取CTRL + V组合),然后可以在TextBox中读取剪贴板数据.

I did a workaround to accomplish the request. Basically I included a TextBox object into my Web Form with the legend "Paste your information [Here]. Using CTRL + V". Then, I read the event pressKey with jQuery (reading CTRL + V combination), then I can read the clipboard data in the TextBox.

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

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