或
var foo = a || b;if (a) { foo = a;} else { foo = b;}
与
var foo = a && b;if (a) { foo = b;} else { foo = a;}
本文共 173 字,大约阅读时间需要 1 分钟。
或
var foo = a || b;if (a) { foo = a;} else { foo = b;}
与
var foo = a && b;if (a) { foo = b;} else { foo = a;}
转载于:https://www.cnblogs.com/maoriaty/p/8241576.html