ASP.net && jQuery 筆記
Math.floor((Math.random()*10)+1); // 1 ~ 10 之間的亂數 Math.floor((Math.random()*100)+1); // 1 ~ 100 之間的亂數
Math.random(); // 傳回 0 - 1 之間的數 Math.floor(x); // 傳回小於或等於 x 的最大整數
沒有留言:
張貼留言