it not work in mac chrome
Author: qiuyaofanCreated Jul 4, 2017Updated Dec 4, 2017
i use the demo but it failed
<button id="copy-button" data-clipboard-text="Copy Me!" title="Click to copy me.">Copy to Clipboard</button>
<script type="text/javascript">
var client = new ZeroClipboard( document.getElementById("copy-button") );
client.on( "ready", function( readyEvent ) {
// alert( "ZeroClipboard SWF is ready!" );
client.on( "copy", function( event ) {
console.info(44444)
});
client.on( "aftercopy", function( event ) {
// `this` === `client`
// `event.target` === the element that was clicked
event.target.style.display = "none";
alert("Copied text to clipboard: " + event.data["text/plain"] );
} );
} );
</script>version ios 10.12.5
Source: zeroclipboard/zeroclipboard