当表达式中的一个条件导致错误时,我可以依靠Javascript立即失败吗?
f = {'a':'b'}; if (f.a !== undefined || f.a === 'b') { // Is this OK to use, because the second condition will never be evaluated? }
javascript
javascript ×1