在c中null 等价为0在javascript呢
js中null 表示不存在的对象,var oEvent=function(oEvent){if(oEvent==null) oEvent=window.Event}可以实现event对象不同浏览器中的兼容(ie 与firefox)undefinded 表示变量未初始化,或者对象的属性不存在;alert(window.xx) 返回值为undefinded
温馨提示:答案为网友推荐,仅供参考
第1个回答 2013-09-26
没有等价什么就是null,是空值的表达式,类似的还有 NaN(非法数字值的表达式) object (js对象值的表达式) undefinded (无定义对象的表达式)
第2个回答 2021-05-22