<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ceshi</title>
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>
<script src="__PUBLIC__/js/jquery.zclip.min.js"></script>
</head>
<body>
<div>
<span id="copyBtn">复制链接</span>
</div>
<script type="text/jscript">
$('#copyBtn').zclip({
path: "ZeroClipboard.swf",
copy: function(){
alert(1111);
//return $data = "aaaaa";
}
});
</script>
</body>
</html>同样的代码 在别的地方就有效果 但是在tp的模版中就没有效果 最佳答案