var sel = "白";var arr =["白色","黑色","紅色","粉色"];var arrStr = arr.join(',');if(arrStr.indexOf(sel)!=-1){console.log(sel)}