jquery-zclip插件

xiaoxiao2021-02-28  85

jQuery-zclip插件完成页面复制粘贴

下载地址 https://github.com/patricklodder/jquery-zclip.git

[javascript] view plain copy <script src="jquery-1.9.1.js"></script>  <script src="jquery-zclip-master/jquery.zclip.js"></script>  <button id="copy">copy</button>  <input id="content"/>  <script>    $(function(){      $('#copy').zclip({          path: 'jquery-zclip-master/ZeroClipboard.swf',          copy: function(){//复制内容              return $('#content').val();          },          afterCopy: function(){//复制成功              alert("复制成功")          }      });  });  </script> 
转载请注明原文地址: https://www.6miu.com/read-64583.html

最新回复(0)