while case速度最快复制代码代码如下:function contains(arr, str) {var i = arr.length;while (i--) {if (arr[i] === str) {return true;} } return false;}