打开浏览器控制台,复制粘贴
var allowPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('copy', allowPaste, true);
document.addEventListener('paste', allowPaste, true);
打开浏览器控制台,复制粘贴
var allowPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('copy', allowPaste, true);
document.addEventListener('paste', allowPaste, true);