摘要: 1、使用Array.includes来处理多个条件 一般写法: function test(fruit) { if (fruit == 'apple' || fruit == 'strawberry') { console.log('red'); } } 使用Array.includes重写: fu 阅读全文
posted @ 2020-08-31 15:15 超哥20 阅读(324) 评论(0) 推荐(0) 编辑