如何在输入文本字段中使用jQuery禁用粘贴(Ctrl+V)选项?
发布于 2018-02-07 10:00:07
$(document).ready(function(){
$(document).keydown(function(event) {
if (event.ctrlKey==true && (event.which == '118' || event.which == '86')) {
alert('thou. shalt. not. PASTE!');
event.preventDefault();
}
});
});
https://stackoverflow.com/questions/-100007355
复制相似问题