阅读背景:

Javascript - 具有多个语句的三元运算符

来源:互联网 

Is this valid JavaScript? I saw an example where someone used commas in the ternary operator conditions, and it was marked as an error in my editor, and the example didn't run in Chrome. However, it did run in Firefox. Once I converted all the ternary statements to if/else statements, the app ran on Chrome. Is this valid JavaScript? I saw an example wher




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: