引用jquery-zclip-master插件
<script src="jq.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(){
//$("<span id='msg'/>").insertAfter($('#copy')).text('');
alert("success")
}
})
})
</script>