📜  防止点击模糊事件 - Javascript 代码示例

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

代码示例1
let elPreventBlur = document.getElementById(...);
elPreventBlur.addEventListener('blur', (ev) => { 
          // Prevent the browser default handler
        ev.preventDefault();
        
        ...
        // additional code if required
        ...
});