return ||和return && 区别

return a && b 如果a是true的话,返回b,否则返回a

return a || b 如果a是true的话,返回a,否则返回b 

原文地址:https://www.cnblogs.com/tk55/p/6736709.html