方法应该是比较简单粗暴的,一眼就能看懂吧?
var _temp = parseInt(Math.random()*100000).toString();
console.log("随机数"+ _temp.length+"位"+_temp+" 分别为:"+_temp.split(""));
随便搜了一下,应该是没有比我这个看着更直接的了~
var _temp = parseInt(Math.random()*100000).toString();
console.log("随机数"+ _temp.length+"位"+_temp+" 分别为:"+_temp.split(""));
随便搜了一下,应该是没有比我这个看着更直接的了~