var clipboard = new ClipboardJS(this);
clipboard.on('success',function (e) {
$('.task-content-6').hide()
layer.msg('已复制口令');
e.clearSelection();
})
clipboard.on('error', function(e) {
layer.msg('复制失败');
});
this.click(); //解决clipboard二次点击生效问题
clipboard.destroy();