在Chrome中使用jQuery / js复制到剪贴板 [英] Copy to clipboard with jQuery/js in Chrome
本文介绍了在Chrome中使用jQuery / js复制到剪贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道这种问题已经被多次询问过了,包括:
I know this kind of question has been asked here for many times, including: How do I copy to the clipboard in JavaScript? or How to copy text to the client's clipboard using jQuery?, I'm narrowing the scope:
Condition:
- works fine in Google Chrome (would be nice if cross-browser, but not necessary)
- with no flash
Is there such a solution or workaround?
解决方案
I just find another amazing repo on Github.
Modern copy to clipboard. No Flash. Just 2kb
Browser Support:
这篇关于在Chrome中使用jQuery / js复制到剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文