My zeroclipboard.js is working nicely and easily copy the text to clipboard without ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js

But if I add the script to my website, it no longer works

Here is my demo coding:

Without the script

With the script

有帮助吗?

解决方案

That's irrelevant. The problem here is not jQuery, but rather the fact that you forget to upload the ZeroClipboard.swf file to the server.

enter image description here

Either that, or you uploaded it to an unconventional path and you forget to set the moviePath on the ZeroClipboard object accordingly.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top