如何阻止浏览器默认事件

if (e.preventDefault) {
                e.preventDefault();
            }
            else {
                // 兼容 IE9-
                e.returnValue = false;
            }

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-10-23
  • 2021-08-23
相关资源
相似解决方案