js中if条件这种写法有什么好处?发布于 7 年前作者 haojing3981 次浏览最后编辑 7 年前来自 issues functionA(a){ if((a || null) != null){ ... } } 中间a || null 这种写法有什么好处么。 直接(a)不就行了么