禁止复制
禁止粘贴

主要就是捕获事件,阻止传播。

禁止复制

在对应的标签上添加@copy.native.capture.prevent='handCopy'

禁止粘贴

在对应的标签上添加@paste.native.capture.prevent='handPaste'

Fun:

handPaste () {
  console.log('禁止粘贴')
  return false
}

两行代码解决你的问题 浏览器兼容性很好 你值得拥有!

相关文章:

  • 2021-12-31
  • 2021-05-29
  • 2021-07-05
  • 2021-12-31
  • 2021-12-31
  • 2021-09-18
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-12-31
  • 2021-12-31
  • 2021-12-31
  • 2021-12-31
  • 2021-12-31
相关资源
相似解决方案