标签:-- style i++ bsp var and == math col
<script> var num1 = []; for(var i = 0; i < 5; i++){ num1[i] = Math.floor(Math.random()*10) + 1; //范围是 [1, 10] for(var j = 0; j < i; j++){ if(num1[i] == num1[j]){ i--; } } } console.log(num1) </script>
标签:-- style i++ bsp var and == math col
原文地址:http://www.cnblogs.com/lzq035/p/7930668.html