2021年6月22日
摘要: 1、有多个条件的 if 语句 // before: if (x 'a' || x 'b' || x 'c' || x 'd') { // 语句 } // after: if (['a', 'b', 'c', 'd'].includes(x)) { // 语句 } 2、简化 if true ... e 阅读全文
posted @ 2021-06-22 18:12 我爱张苗苗 阅读(90) 评论(2) 推荐(1) 编辑