![](https://img-blog.csdnimg.cn/da2e4f058ce24feaaa4a74b97f31e683.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
TS
Typescript
alokka
前端劝退师
展开
-
typescript type 和 interface 的区别
1. interface侧重于描述数据结构,type侧重于描述类型原创 2022-07-31 23:48:26 · 243 阅读 · 0 评论 -
typescript localStorage 封装
localStorage 封装原创 2022-06-20 14:39:13 · 268 阅读 · 0 评论 -
typescript class类中 public、private、protected、static、abstract 区别
类的修饰符public默认修饰符可以自由的访问程序里定义的成员private只能在类内部访问class Animal { private name: string; constructor(theName: string) { this.name = theName; }}let zoo = new Animal('panda')zoo.name // Property 'name' is private and only accessible within class原创 2022-05-23 01:33:03 · 845 阅读 · 0 评论