//判断一个值是否在指定数据中
var arr = Array(1,2,3,4,5);
alert(in_array("5",in_array));
function in_array(search,array){
for(var i in array){
if(array[i]==search){
return true;
}
return false;