【发布时间】:2013-08-23 03:09:33
【问题描述】:
试图让 zclip 工作:
jQuery(document).ready(function($){
$('.copy').zclip({
path:'http://www.steamdev.com/zclip/js/ZeroClipboard.swf',
copy:function(){return $('.macro').val();}
});
// The link with ID "copy-dynamic" will copy the current value
// of a dynamically changing input with the ID "dynamic"
});
现在我收到此错误:
Uncaught TypeError: Object [object HTMLAnchorElement] has no method 'data' @ jquery.zclip.js line 286
$(this.domElement).data('zclipId', 'zclip-' + this.movieId);
【问题讨论】:
-
与 Java 无关。删除标签。
-
你能在问题中添加你的 HTML 标记吗?你还有其他浏览器错误吗?
标签: javascript jquery content-management-system zclip