JavaScript和赋值中的运算符
var oneOrTheOther = someOtherVar || "these are not the droids you are looking for...";
oneOrTheOther
null
, undefined
false
oneOrTheOther
var oneOrTheOther = someOtherVar && "some string";
someOtherVar
someOtherVar
隔江千里
白板的微信
相关分类