真奇怪 ::
Jsfiddle: http: //jsfiddle.net/sxeCM/4/ [工作]
本地具有相同的代码:
<html>
<head>
</head>
<body>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://www.steamdev.com/zclip/js/jquery.zclip.min.js"></script>
<script>
$(document).ready(function() {
$('a#copy').zclip({
path:'http://www.steamdev.com/zclip/js/ZeroClipboard.swf',
copy:$('div#description').text()
});
});
</script>
<a id='copy' href="#">Copy</a>
<div id='description'>this seems awesome</div>
</body>
</html>
它不在本地工作,但在 jsfiddle 上按预期工作。我究竟做错了什么 ?