和java的contains用法一样,只不过函数名不一样

//包含返回true,不包含返回false
str.includes('cowBeer')