第一次認識這個css屬性是在某一年的apple發表會,看到了文字居然有漸層效果!…
假使用戶上傳圖片,想要預覽上傳的圖片該怎麼做?以前比較古老的方法是先打api傳送圖片給後端,後端再回傳圖片url給前端接,但這樣一來一往,不但耗費時間,流程也會變得複雜,我們可以利用HTML5提供的方法createObjectURL 和…
第一次接觸try catch是在剛學PHP的時候 ,雖然現在都還給老師就是了…我們可以利用try catch來捕捉例外的狀況,也可以因應不同錯誤狀況,拋出不一樣的錯誤訊息。
這篇算是工作近期的一篇心情抒發,最近很常被A同事打斷工作問問題,導致思考到一半的思緒被打斷n次,工作效率非常差,我知道任何人都會遇到所謂鬼打牆的狀況(真的想不到解法,卡了很久的那種)但我比較不能接受的是僅僅只是不知道為什麼程式沒work(有報錯但也沒看),或是一些c…
在vue組件中想必大家已經很習慣用props、emit 來進行組件之間的溝通,…