js-点击复制文件到剪贴板

  // 复制链接
  copyLinkHandler() {
    const input = document.querySelector('#private-link-code');
    input.value = this.copyLinkTxt;
    // 选中赋值过的input
    input.select();
    document.execCommand('Copy');
  }

 

posted @ 2020-03-09 15:08  面包_girl  阅读(556)  评论(0编辑  收藏  举报
/* 鼠标点击文字特效 */