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