如何阻止浏览器默认事件

如何阻止浏览器默认事件

if (e.preventDefault) {
                e.preventDefault();
            }
            else {
                // 兼容 IE9-
                e.returnValue = false;
            }
原文地址:https://www.cnblogs.com/QingFlye/p/4304951.html