js 判断语句 或的写法

                    const checkModel = (Model) => {
				const models = ['pegeot', 'rest'];
				if(models.includes(Model)){
					console.log('ss')
				}
			}
			checkModel('pegeot')                                    

  

  

转载于:https://www.cnblogs.com/whlBooK/p/11100907.html

你可能感兴趣的:(js 判断语句 或的写法)