Clipboard manipulation via JavaScript
This question already has an answer here:
You could use this library to manipulate the clipboard
https://github.com/zeroclipboard/ZeroClipboard
Can't do it with HTML or JavaScript. You'd have to use a flash or java component to copy the data to the clipboard. The reasons this is disabled is for security purposes.
An example of a flash powered method is this one.
链接地址: http://www.djcxy.com/p/19736.html上一篇: 用鼠标左键复制到剪贴板
下一篇: 通过JavaScript进行剪贴板操作