jquery-zclip icon indicating copy to clipboard operation
jquery-zclip copied to clipboard

Zclip Not working

Open haroldSanchezb opened this issue 9 years ago • 1 comments

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!

haroldSanchezb avatar May 06 '15 16:05 haroldSanchezb

去看这个网站 http://fontawesome.dashgame.com/,打开调试器,看最后的 script 标签,里面有相应的实现方法。

xingwen1987 avatar Dec 08 '17 06:12 xingwen1987