|| 当前值为 null undefined 0 false “” 时取后值 ?? 当前值为 null undefined 时取后值 区别 当前值为 0 false “” 时取值不一样 结论 判断不存在的值时,用??更合适