#每天一个知识点# DAY 14
//if(type === 2 || type === 3 || type ===4){}
//改进
const condition = [1, 2, 3, 4];
if (condition.includes(type)) {
//...
}
展开
评论