e = e || window.event的区别及用法
本文链接:https://blog.csdn.net/qq_41348029/article/details/81288481 e = e || window.event 在做事件处理时,用于区分IE和其他浏览器事件对象。 下面链接为事件对象的参考资料: http://wenku.baidu.com/view/400a89f4f61fb7360b4c65ca.html <!DOCTYPE HTML> <html> <head> <title></title> <style type="text/css"> #aa { border: 1px solid #000; width: 100px; height: 40px; margin-top: 50px; } #bb { border: 1px solid #000; width: 500px; height: 40px; margin-top: 50px; } #cc { border: 1px solid #000; width: 500px; height: 40px; } </style> </head> <body> <div id="aa"></div> <div id="bb">dfdfddfsd</div> <div id="cc">gregreger</div> <script type="text