摘要: //判断每一个数是否在数组中 var numArr = [1,2,3,4,5,6,7]; var num = 8; var flag = numArr.every(function(val,index){ return val != num; }) if(flag){ numArr.push(num); } co... 阅读全文
posted @ 2017-09-15 15:25 春风得意之时 阅读(760) 评论(0) 推荐(0) 编辑