jquery检测复制、粘贴与剪切操作

//复制
$("#textA").bind('copy', function() {  
    $('span').text('copy behaviour detected!')  
}); 
//粘贴 
$("#textA").bind('paste', function() {  
    $('span').text('paste behaviour detected!')  
}); 
//剪切
$("#textA").bind('cut', function() {  
    $('span').text('cut behaviour detected!')  
});

原文地址:https://www.codelovers.cn/article/20180324140556.html

猜你喜欢

转载自blog.csdn.net/tangjuntangjun/article/details/83540255
今日推荐