<a id="copy" data-clipboard-text="123456">复制文本</a> $(function(){ var clipboard = new Clipboard('#copy',{ text: function(trigger) { alert("复制成功!"); return trigger.getAttribute('data-clipboard-text'); } }); });
Powered by: 博客园 Copyright © 2024 且行且思 Powered by .NET 9.0 on Kubernetes