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
时间: 2024-12-19 19:01:24