ts
动态类型vs静态类型
弱类型 发生隐式转换
bootstrap:通过添加class就能得到自己想要的样子。
参考:https://juejin.cn/post/7059394497012039717
type && interface
type extends
interface extends
type 可以声明基本类型别名,联合类型,元组等类型
interface能够合并声明
动态类型vs静态类型
弱类型 发生隐式转换
bootstrap:通过添加class就能得到自己想要的样子。
参考:https://juejin.cn/post/7059394497012039717
type && interface
type extends
interface extends
type 可以声明基本类型别名,联合类型,元组等类型
interface能够合并声明