摘要: 不想再被喷了,好好整理一下常用es6!! if中的判断语句 if( type == 1 || type == 2 || type == 3 || type == 4 || ){ //... } 经过改进后,可以简写成: const condition = [1, 2, 3, 4] const type = 11 if (condition. 阅读全文
posted @ 2023-03-06 15:49 cybozu开发者 阅读(78) 评论(0) 推荐(0)