zeroclipboard粘贴实际的swf / js文件

时间:2014-04-01 16:54:04

标签: javascript jquery zeroclipboard

是否有人遇到过覆盖实际文件扩展名而不是所需内容的ZeroClipboard?

我的代码是

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="javascripts/ZeroClipboard.js"></script>


<script language="JavaScript">
$(document).ready(function() {

 var clip = new ZeroClipboard($("#copy_button"), {
  moviePath: "javascripts/ZeroClipboard.swf"
  });     
  });
 </script>


 </head>

  <body>


   <button id='#copy_button' data-clipboard-target='to_copy'><b>Copy To Clipboard</b></button>  

    <p id='to_copy'>This should be copied text</p>

0 个答案:

没有答案