Js 随机数产生6位数字


复制代码 代码如下:

<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>

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3