创建复制按钮
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.zclip.js"></script>
<p id="description">这是要复制的内容</p>
<a id="copy-description">复制</a>
<script type="text/javascript">
$(document).ready(function () {
$('a#copy-description').zclip({
path: 'js/ZeroClipboard.swf',
copy: $('p#description').text()
});
})
</script>
</body>
</html>
人生苦短,我用python!