

MVC 在寫商業邏輯驗證的時候,通常都會寫在Model裡面,這好處除了統一的寫法之外,單元測試也很好寫,今天就來說明如何單元測試 Model 驗證。
Continue reading解構賦值是一種優雅的方式能夠將{}
與[]
的值讀出來
Continue reading
最近專案上有使用到 Sweetalter2 ,可是目前 typescript 的 typing 檔案,只有 Sweetalter 的版本,導致有很多屬性在使用的時候,typescript 看不懂,例如 input 這個屬性。
- ts
1 | swal({ |
