Js 随机数产生6位数字
                        
                            时间:2021-07-01 10:21:17
                            帮助过:5人阅读
							                        
                     
                    
                    
             代码如下:
<script type="text/javascript"> 
function MathRand() 
{ 
var Num=""; 
for(var i=0;i<6;i++) 
{ 
Num+=Math.floor(Math.random()*10); 
} 
document.getElementById("Lb_Random").innerText=Num; 
document.getElementById("Lb_Random").innerHTML=Num; 
} 
</script>