TypeScript - Classes

本篇的主旨:

  • Class 的運用
  • Class + Interface 的運用

TypeScript - Interfaces

Interfaces + Classes = TS 提高程式碼複用性。
這一篇主要是介紹與了解 Interfaces 的作用,並會在下一篇文章介紹 Classes 與兩者併用的技巧與好處。

TypeScript - 資料型別 和 Type Annotations

你是否有打開過某一個專案,發現裡面的變數名稱是 a, b, c 等,完全無法透過變數直接了解其作用?此時若是使用 TypeScript,就可以透過型別的註釋,加速了解正在傳遞的數據類型,進而提高程式碼的可讀性。

快速入門 - TypeScript 的 What? Why? How?

What is TypeScript?

1
TypeScript = JavaScript + A type System
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×