参考http://www.cnblogs.com/PeunZhang/p/3324727.html

需要引用jquery.zclip

$("#id").zclip({
        path: "ZeroClipboard.swf",
        copy: function(){
             return $(this).text(); //复制的文本
        },
        beforeCopy:function(){
            //按住时
        },
        afterCopy:function(){
            //复制成功后
        }
    });

但是这里有个坑,就是"#id"元素不能放在<table>标签中

相关文章:

  • 2021-10-14
  • 2022-02-07
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
猜你喜欢
  • 2021-12-03
  • 2021-12-12
  • 2021-12-19
  • 2021-09-28
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案