# 浏览器的剪切板中如何监听复制事件
Issue
欢迎在 Issue 中交流与讨论: Issue 444 (opens new window)
Author
在HTML元素上
<input oncopy='cb'>
在JS中获取具体元素
document.querySelector('p').oncopy = cb
document.oncopy = cb
或者
document.querySelector('p').addEventListener('copy',cb)
document.addEventListener('copy',cb)