代码示例:(标识:event_oncut_p)
<!DOCTYPE html>
<html>
<body>

<p contenteditable="true" oncut="myFunction()">尝试剪切此文本</p>

<script>
function myFunction() {
  alert("您剪切了文本!");
}
</script>

</body>
</html>
运行结果: