第二十二天到第二十四天:JavaScript 裏面的居民們-IFE

第二十二天到第二十四天:JavaScript 裏面的居民們

日期 總用時 學習目標
2018.08.18-2018.08.21 12h JavaScript 元素相關

學習目標

學習內容

Math 函數

功能 函數 示例
向下取整 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前端

最後一題:數組轉對象 嚴重參考 別人的做業與筆記

待深刻的知識

疑問

Flag

系統的學習前端,堅持 66 天git

相關文章
相關標籤/搜索