摘要: 1、含有多个条件的if语句 我们可以在数组中存储多个值,并且可以使用数组的 includes 方法。 //longhand if (x 'abc' || x 'def' || x 'ghi' || x 'jkl') { //logic } //shorthand if (['abc', 'def', 阅读全文
posted @ 2021-03-11 10:22 ltog 阅读(70) 评论(0) 推荐(0) 编辑