Fork me on GitHub
摘要: 1.如果有多个条件 我们可以在数组中存储多个值,并且可以使用数组 include 方法。 //Longhand if (x 'abc' || x 'def' || x 'ghi' || x 'jkl') { //logic } //Shorthand if (['abc', 'def', 'ghi' 阅读全文
posted @ 2021-11-22 18:13 思考的大腿 阅读(35) 评论(0) 推荐(0) 编辑