Home  >  Article  >  Backend Development  >  如何实现打开页面就一键复制?

如何实现打开页面就一键复制?

WBOY
WBOYOriginal
2016-06-20 12:34:422079browse

上次SHOWBO大神,教我如何一键复制到剪贴板。代码如下:
<script></script>
<script></script>
<script> <br /> $(function () { <br /> var pic="157"; <br /> $("#item>a[rel=copylink]").zclip( <br /> {path:'/ZeroClipboard.swf', copy: pic }); <br /> }); <br /></script>



      
    
    
  



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn