试图让 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);