编程爱好者之家

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

2018-03-24 14:06:33 856

//复制
$("#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!')  
});


同类文章