日期 | 總用時 | 學習目標 |
---|---|---|
2018.08.18-2018.08.21 | 12h | JavaScript 元素相關 |
功能 | 函數 | 示例 |
---|---|---|
向下取整 | Math.floor() | Math.floor(1.1)==>1 |
向上取整 | Math.ceil() | Math.ceil(1.1) ==>2 |
四捨五入 | Math.round() | Math.round(1.1)==>1 Math.round(1.6)==>2 |
保留有效數位 | n.toFixed() | 1.442.toFixed(2)==>1.44 1.446.toFixed(2)==>1.45 |
隨機數 | Math.random() | Math.random()==>0.38078270980122775 |
Homework前端
最後一題:數組轉對象 嚴重參考 別人的做業與筆記
系統的學習前端,堅持 66 天git