阻止默认事件函数

//阻止默认事件函数
function stopDefault(e) {
    if (e && e.preventDefault)
        e.preventDefault();
    else
        window.event.returnValue = false; //兼容IE
}

猜你喜欢

转载自blog.csdn.net/weixin_42029487/article/details/86706536
今日推荐