阻止事件冒泡\阻止默认行为

来源:互联网 发布:医保控费软件 编辑:程序博客网 时间:2024/05/22 06:25

e.stopPropagation();    //  阻止事件冒泡

e.preventDefault();  //阻止默认行为 ( 表单提交 )

0 0