想要快速上手可以參考這篇官方文檔https://leafletjs.com/examples/quick-start/
當多人一起開發,時間一久,為什麼css不知不覺就變得這麼肥大呢…
善用 css 簡短寫法
h2 { margin-top: 1px; margin-right: 2px…
剛寫javascript的時候,永遠只會用forEach一招打到底,某天看了線上課程,才發現有some、findIndex、every這些陌生面孔,能夠縮短不少程式碼(懶人福音),因此想要寫一篇關於陣列的操作方法筆記。
今天要來探討的就是處理驗證的時候必備的正規表達式,落落長的一大段就像亂碼一樣讓人有看沒有懂,一直以來都是直接copy&paste,但有時候需要微調規則的時候就愣在那邊了,逃避了許久,今天終於要來面對這一長串的像是亂碼的東西,究竟,我到底該怎麼看懂它?
去年因為工作的關係,開始接觸TypeScript,從後端跳過來前端的同事表示沒什麼學習難度,但我剛碰的時候覺得十分有障礙,不習慣強型別之外,對於繼承什麼的毫無概念,動不動就報錯編譯失敗,十分苦手啊!這篇小小紀錄一下我學習TypeScript的心得。