简体   繁体   English

jQuery-更改所选文本

[英]jQuery - change selected text

I found some code to copy selected text (for example: this ) but there is no way to change that text to be available in clipboard . 我找到了一些代码来复制选定的文本(例如: this ),但是无法更改该文本以使其在clipboard可用。

How to change that text in clipboard ? 如何更改clipboard中的文本?

JavaScript has no access to the clipboard due to security policy . 由于安全政策, JavaScript无法访问剪贴板。

Possibly Flash may help. 可能Flash可能会有所帮助。

Check the ZeroClipBoard library in order to manage clipboard in other browser than IE. 检查ZeroClipBoard库 ,以便在IE以外的其他浏览器中管理剪贴板。

Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM