新建一个网页收藏

地址输入(中间没有空格):

javascript:function handler(event){event.clipboardData.setData('text/plain',window.location.href);event.preventDefault()}document.addEventListener('copy',handler);document.execCommand('copy');document.removeEventListener('copy',handler);alert('Copy url successful:\n'+window.location.href);

 

https://i.cnblogs.com/posts/edit-done;postId=13416375

相关文章:

  • 2022-12-23
  • 2021-08-29
  • 2021-12-04
  • 2021-10-11
  • 2022-02-01
  • 2022-02-14
  • 2022-02-10
猜你喜欢
  • 2022-12-23
  • 2021-09-06
  • 2021-12-15
  • 2022-02-08
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案