首先我們需要用到JS本身的 Math.random() 函式,這個函數會隨機產生出0~1之間的 ... 自身小的最大整數,也就是說當我們把 Math.random() 的結果放到 Math.floor() 中的 ...
確定! 回上一頁