1. 使用箭头函数默认有返回值
const sum = (x, y) => x + y;
console.log(sum(2, 3)); // 输出:5
2. 使用 flag && fn() 写法可避免一直是if else
3