javascript 獲得0~x的隨機亂數

var r=Math.floor(Math.random()*4);//隨機獲得0~3的亂數

留言

這個網誌中的熱門文章

Google AdSense廣告如何領取收益?