[
["1","2","3"],
["4","5","6"],
["7","8","9"]
]
var newarr=[]
let i=0
oldarr[0].forEach(e1=>{
oldarr[1].forEach(e2=>{
oldarr[2].forEach(e3=>{
newarr[i++]=e1+e2+e3
})
})
})
console.log(JSON.stringify(newarr))
验证130-139,150-159,180-189号码段的手机号码
<script type="text/javascript">var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/
if(!myreg.test($("#phone").val()))
{
alert('请输入有效的手机号码!')
return false
}
</script>