摘要: 1.条件语句的优化 // 根据颜色找出对应的水果 // bad function test(color) { switch (color) { case 'red': return ['apple', 'strawberry']; case 'yellow': return ['banana', ' 阅读全文
posted @ 2020-06-30 11:32 前端劝退师™ 阅读(826) 评论(0) 推荐(0)