javascript 零碎笔记

逻辑运算符:

false || 'test" 返回 "test"

true && "test" 返回 "test"

return item._id + column.path || column.key; 与
return item._id + (column.path || column.key);

selectedGenre && selectedGenre._id ? 'some' : 'another'

  

猜你喜欢

转载自www.cnblogs.com/lemos/p/10539870.html