ZeroClipboard.config({ swfPath: "/scripts/ZeroClipboard.swf" });var client = new ZeroClipboard();client.setText(getLogs());client.clip(document.getElementById("btn-copy"));ZeroClipboard.on('copy', function (client, args) { alert("复制成功");});
zeroclipboard github项目
https://github.com/zeroclipboard/zeroclipboard.git