Google浏览器的Console不能粘贴代码的处理
往Console敲入下面的代码,完美修复:
var allowPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('copy', allowPaste, true);
document.addEventListener('paste', allowPaste, true);
记得收藏并关注,掌握更多相关知识!!!