常见的复制粘贴功能其实可以很容易的实现:

......
 <button onclick="copyNow()">复制</button>
 <textarea>
        这是马上被复制的文字
 </textarea>
 ......
1 function copyNow(){
2      var  text = $('textarea'); 
3      text.select();
4      document.execCommand("Copy");
5 }

这是实现复制功能,其他的功能也可以如法炮制。