function in_array(search,array){ for(var i in array){ if(array[i]==search){ return true; } } return false; }
原文地址:https://www.cnblogs.com/cjjjj/p/10453547.html
时间: 2024-10-31 08:53:50
function in_array(search,array){ for(var i in array){ if(array[i]==search){ return true; } } return false; }
原文地址:https://www.cnblogs.com/cjjjj/p/10453547.html