gpt4 book ai didi

jquery - 调试 jQuery 和 zclip 插件

转载 作者:行者123 更新时间:2023-12-03 22:42:17 25 4
gpt4 key购买 nike

谁能告诉我为什么这段代码不起作用?

链接到 zclip:http://www.steamdev.com/zclip/

工作示例:http://jsfiddle.net/f4gZA/

提前致谢。

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.steamdev.com/zclip/js/jquery.zclip.min.js"></script>
<script type="text/javascript" src="http://www.steamdev.com/zclip/js/jquery.snippet.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#copy-button").zclip({
path: "http://www.steamdev.com/zclip/js/ZeroClipboard.swf",
copy: function() {
return $(this).prev().text();
}
});

});
</script>

<div id='copy'>Test</div>
<button id='copy-button'>copy</button>

最佳答案

I got it to work. problem comes when im using local host. when i uploaded to the sever it work. thanks

关于jquery - 调试 jQuery 和 zclip 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6756622/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com