Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Javascript 自动复制选定的文本?
例如,当我在页面中突出显示一个单词(通过双击它)时,该单词会自动复制到剪贴板中。
有没有办法做到这一点?
这是您想要使用的:https ://code.google.com/p/liveclipboard-jquery
某些版本的 ie 可以本地执行此操作。