他是的
不过你也写错了吧
e=e||window.event这样才对吧event对象在ie下是作为一个全局变量被处理的,所以用window.event就可以直接取得 
而在ff下却不是全局变量,而是在事件发生的那时候才产生,然后作为参数传递 兼容用的
ie下不需要参数    e就是null
在ff下需要参数来传递

解决方案 »

  1.   

    那e=e||window.event 最后e的值不应该是true或者false嘛??
    为啥不是?
      

  2.   

    || (Logical OR) Returns the first operand if it can be converted to true; otherwise, returns the second operand. Thus, when used with Boolean values, || returns true if either operand is true; if both are false, returns false.  
     
      

  3.   

    参考: http://www.webreference.com/javascript/reference/core_ref/ops.html
      

  4.   

    ||是这样运算的:从第一个表达式开始,遇到有意义的返回,否则返回最后一个表达式(注意不一定是Boolean值);