jquery-zclip
jquery-zclip copied to clipboard
Zclip Not working
I have this settings:
var element = '.copyLink',
path = '/-js/libs/jquery/ZeroClipboard.swf';
$(element).zclip({
path: path,
copy: function() {
return $(this).find('.copy-text').text();
},
beforeCopy: function () {
console.log('test');
},
afterCopy: function() {
console.log('good');
}
});
this initialize when document is ready but not working, greetings!
去看这个网站 http://fontawesome.dashgame.com/,打开调试器,看最后的 script 标签,里面有相应的实现方法。