body{ cursor: url("https://images.cnblogs.com/cnblogs_com/szqblog/1889956/o_201130135019Cursor.png"), auto; }

阻止默认事件和冒泡

阻止默认事件:
e.preventDefault()
e.returnValue = false  (IE)  // 对IE有用
阻止冒泡:
e.stopPropagation()
e.cancelBubble = true (IE) // 对IE有用
posted @ 2020-12-09 10:28  1234前来报到  阅读(46)  评论(0编辑  收藏  举报