
当元素的内容被剪切时, oncut 事件会触发。您可以尝试运行以下代码,了解如何在JavaScript中使用oncut事件 −
示例
<!DOCTYPE html>
<html>
<body>
<input type = "text" oncut = "cutFunction()" value = "cut the text">
<script>
function cutFunction() {
document.write("Text cut!");
}
</script>
</body>
</html>











