📜  启用剪贴板 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:25.682000             🧑  作者: Mango

代码示例1
// Paste into browser console to enable pasting on a webpage
var allowPaste = function(e){
  e.stopImmediatePropagation();
  return true;
};
document.addEventListener('paste', allowPaste, true);