這裡需要三個插件,分別是: jquery.js ZeroClipboard.js ZeroClipboard.swf 祝你好運! 複製程式碼 代碼如下: 點擊複製 <BR>$(document).ready(function() { <br><br>ZeroClipboard.setDefaults({ <BR>moviePath: "ZeroClipboard.swf" <BR>}); <br><br>var clip = new ZeroClipboard($("#d_clip_button"); <br>clip.on("load", function(client) { <br>console.log("ZeroClipboard."); <BR><br>client.on("complete", function(client, args) { <br>console.log("內容己複製:" args.text); <BR>}); <BR>}); <BR>}); <BR>