js中if语句的几种优化代码写法bar():baz()if (!foo) bar()else baz()== foo?baz():bar()if (foo) return bar()else return baz()== return foo?bar():baz()对于以2023-04-16JavaScript250